Execution cache file is per script folder leading to error when running scripts in parallel
See original GitHub issueI’m using dotnet script for some scripts which I run in parallel. Both scripts are in the same folder, but unless I turn off caching, this leads to a clash on the common cache file script.dll
:
The process cannot access the file ‘c:\somewhere\scripts\execution-cache\script.dll’ because it is being used by another process.
The first script to get there works fine, but the 2nd fails because it tries to use the cache at the same time.
~It works if I use --no-cache
but I would rather not.~
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
Caching error in parallel python
When I execute the code it gives me an error saying it expected the old method signature. Traceback (most recent call last): File...
Read more >GNU PARALLEL EXAMPLES
GNU parallel can take the arguments from command line instead of stdin (standard input). To compress all html files in the current dir...
Read more >GNU Parallel Tutorial
GNU parallel reads input from input sources. These can be files, the command line, and stdin (standard input or a pipe).
Read more >Improve the Performance of Gradle Builds
Executes all tasks in parallel, even those in the same subproject. Caches dependency resolution results. Enable incremental build for custom tasks. Incremental ...
Read more >Troubleshooting the ParallelRunStep - Azure Machine ...
Tips for how to troubleshoot when you get errors using the ParallelRunStep in machine learning pipelines.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @mungojam
The reason it probably won’t work even with the
--no-cache
option is that we always run the script from a compiled script (script.dll).That being said, the cache should definitely handle executing two scripts in parallell from the same folder. Looking into it👍
Fixed by #596