Closed MxShun closed 2 months ago
The message text file busy come from Linux when something is attempting to overwrite the executable for a running process which is using the same data. Digdag sh tasks in parallel is not safe for concurrent access, and overwriting running processes can result in unexpected behavior. It's outside of digdag system.
@toru-takahashi Thank you for replying, and sorry I misunderstood. _batchapp.sh is not executed concurrently cause these executable files are copied to temporary directory. Therefore, same executable files (of same paths) don't run in different sessions, right?
For shell operator itself, yes. I'm not sure your shell script's code. So, I provided a general cause about the error. At least, I recommend you to add some logging in the shell script side, so you can identify where the error happens in the next time.
@toru-takahashi I'll look it up by adding some logging, thank you!
Description
When running shell script _cmd/batchapp.sh, "Text file busy" errors occur like shown below.
batch.import.dig
We typically have multiple workflows concurrently executing _batchapp.sh, but this issue intermittently occurs, meaning there is no reproducibility. Do you know the reasons?
Environment
Digdag: v0.10.5 JDK: openjdk:8u282-jre-slim OS: Linux x86_64