nextflow icon indicating copy to clipboard operation
nextflow copied to clipboard

Mitigate Interrupted system call on trace_file writes

Open infinite-turtles opened this issue 1 year ago • 1 comments

Writes to files from bash built-ins like echo can be fallible, particularly in older versions of bash, such as versions 4.2.x and 4.4.x. This often lead to errors when running numerous processes with tracing enabled on network-based file systems, such as:

.command.run: line 172: echo: write error: Interrupted system call

Here is a potential mitigation. To address this, echo commands were consolidated into a single block to write to $trace_file with an error message on failure. This is assuming that the lack of a .command.trace file will not cause any downstream failures.

Reference

For more details on similar issues, see: https://unix.stackexchange.com/a/487260

Signed-off-by: Nico Holguin [email protected]

infinite-turtles avatar Oct 11 '24 16:10 infinite-turtles

Deploy Preview for nextflow-docs-staging ready!

Name Link
Latest commit fa7496e3fa288b4ef231929fd2a67cdc40199ec9
Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/67571489be17ba0008122990
Deploy Preview https://deploy-preview-5397--nextflow-docs-staging.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Oct 11 '24 16:10 netlify[bot]