Handle bad submissions in a plugin #3908
-
Hello 🙂 I am developing a plugin (https://github.com/nimbix/nf-jarvice/) for my company platform. In the current plugin state, when a task is submitted, if submission failed, I have a log.error message, and submit() void do not end with tasks status as SUBMITTED. When this happens, nextflow then just hangs, waiting for user to kill the current process (Ctrl+c). Is it the expected behavior ? I find logical not to stop nextflow, because there could be other tasks running, and it needs to gracefully end all of them. But in that case, what would be the way to inform nextflow that all tasks should now be terminated and current pipeline stopped since one of the tasks failed to submit ? (assuming there is no "retry" mechanism). Many thanks in advance 😊 Relevant part of the code is here: https://github.com/nimbix/nf-jarvice/blob/b21120f9385a5aec59b317262ccee613236147af/plugins/nf-jarvice/src/main/nextflow/jarvice/JarviceTaskHandler.groovy#L103 Ox |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Instead of logging the error I think you have two choices:
|
Beta Was this translation helpful? Give feedback.
Should be enough the
this.status = TaskStatus.COMPLETED
. The absence of exitStatus is considered an error condition