-
Notifications
You must be signed in to change notification settings - Fork 629
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
Workflow option failOnIgnore
causes workflow to hang
#5291
Comments
I can reproduce the issue on 24.08.0-edge: > /usr/local/bin/nextflow-24.08.0-edge run .
N E X T F L O W ~ version 24.08.0-edge
Launching `./main.nf` [focused_blackwell] DSL2 - revision: bc82ab126c
[af/ce2eeb] Submitted process > process1 (3)
[f7/ada6f2] Submitted process > process1 (1)
[12/e82491] Submitted process > process1 (2)
[f7/ada6f2] NOTE: Process `process1 (1)` terminated with an error exit status (2) -- Error is ignored (hangs forever)
|
It looks like process1 completes, then the process2 task is scheduled, but never run:
In fact, if I comment out process2 then the run finishes. Strange that it only happens with failOnIgnore. Right now I suspect there is some race condition in the task polling monitor that is causing it to not submit the task when it should be able to. |
Bingo: nextflow/modules/nextflow/src/main/groovy/nextflow/processor/TaskPollingMonitor.groovy Lines 586 to 590 in 6e866ae
|
Bug report
Expected behavior and actual behavior
When using the
ignore
errorStrategy with the workflow optionfailOnIgnore
, the pipeline hangs when there's a task failure.Steps to reproduce the problem
workflow.nf
Nextflow Config
I would expect that the workflow would complete with a non-zero exit status.
Program output
And it hangs and doesn't finish.
Environment
$SHELL --version
) [zsh 5.9 (arm-apple-darwin22.1.0)]Additional context
The text was updated successfully, but these errors were encountered: