-
Notifications
You must be signed in to change notification settings - Fork 667
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
Detecting errors in data unstaging #5345
Conversation
✅ Deploy Preview for nextflow-docs-staging canceled.
|
…/out Signed-off-by: jorgee <[email protected]>
Signed-off-by: jorgee <[email protected]>
Signed-off-by: jorgee <[email protected]>
Signed-off-by: jorgee <[email protected]>
Signed-off-by: jorgee <[email protected]>
modules/nextflow/src/main/resources/nextflow/executor/command-run.txt
Outdated
Show resolved
Hide resolved
modules/nextflow/src/main/resources/nextflow/executor/command-run.txt
Outdated
Show resolved
Hide resolved
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: jorgee <[email protected]>
Signed-off-by: jorgee <[email protected]>
Signed-off-by: jorgee <[email protected]>
Improve handling unstage outputs and controls
Signed-off-by: Paolo Di Tommaso <[email protected]>
## Capture possible errors. | ||
## Can be caused either by the task script, unstage script or after script if defined | ||
local last_err=$? | ||
## capture the task error first or fallback to unstage error | ||
local exit_status=${nxf_main_ret:=0} | ||
[[ ${exit_status} -eq 0 && ${nxf_unstage_ret:=0} -ne 0 ]] && exit_status=${nxf_unstage_ret:=0} | ||
[[ ${exit_status} -eq 0 && ${last_err} -ne 0 ]] && exit_status=${last_err} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still very hard to decode, it would be nice to be more verbose about the different of last_err
vs nxf_main_ret
vs nxf_unstage_ret
and the general logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok reported as separate issue
Signed-off-by: jorgee <[email protected]> Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Paolo Di Tommaso <[email protected]> Signed-off-by: Christopher Hakkaart <[email protected]>
close #3711