-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation of task outputs #3711
Comments
This is somehow related to this comment. @mribeirodantas tried removing Some Bash hacker may want to give it another try |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've hit this as well, when a
Do you recall why? in theory if
|
Here there's a tentative solution but it was aborted |
I think the @pditommaso solution #3858 (add set-e before nxf_unstage()) and the change to wait all nxf_parallel processes #4050 should detect the exit codes. The statement I have tested with Azure forcing an error in the stage out. It is detecting the failure and setting the exit code of the azcopy process. I need to check with the other clouds. Another issue that I see is the print of the errors. Stage-out errors are in the .command.log but not in the .command.err, and it is not printed when there is an error in a process execution. |
Fail tasks where stageOut fails
This is similar to existing issue #3372, but instead of being concerned with the
publishDir
step (run work directory to publish output location), this issue is concerned with theoutput
step (task work directory to run work directory)Usage scenario
When task outputs are copied from the task working directory to the run work directory using the aws cli, the
aws s3 cp
process can fail. Nextflow ignores this failure with a|| true
, which means that in the event of failure, the downstream tasks expecting this input will fail. This makes debugging harder than it should be, as users will be looking for the error in the downstream task rather than in the task that actually failed.Suggest implementation
I would recommend that we remove the
|| true
on L187 here:nextflow/modules/nextflow/src/main/groovy/nextflow/executor/SimpleFileCopyStrategy.groovy
Lines 184 to 190 in 2a22425
In addition, it may be helpful to provide a more descriptive warning in the event of an upload failure, but I'm not 100% sure how best to communicate that to the Nextflow process.
The text was updated successfully, but these errors were encountered: