question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Execution cache file is per script folder leading to error when running scripts in parallel

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
seesharpercommented, Jun 1, 2020

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👍

0reactions
mungojamcommented, May 1, 2021

Fixed by #596

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found