How to SKIP a failed task? #2214
Replies: 4 comments 1 reply
-
+1, we also need this feature. |
Beta Was this translation helpful? Give feedback.
-
Hey @cesar-moya, Have you considered marking this task as Optional? Also, can you provide more details about how you plan on using this feature? It'd also help to have an example, particularly specifying what state the workflow and task to be skipped would be in, when trying to be skipped. |
Beta Was this translation helpful? Give feedback.
-
We also need this functionality. Below is our use case, When a workflow is failed, sometimes the failure will be manually remediated. Our tasks are not idempotent. In such case, we need to skip the failed task if it was manually remediated. How do we achieve this in conductor ? The reason, we can't use the current rerun API is, the rerun will reset (or clear all the previous execution details , e.g. we will lose the start & end timestamps of previous attempt). |
Beta Was this translation helpful? Give feedback.
-
@AkashShuklaGithub @ravisund we've considered this, but we're concerned about the side effects, eg. when the downstream tasks rely on the output from this failed task. A thorough approach would be able to verify and validate these side effects. Given the returns, we've bucketed it as low priority. If anyone in the community has bandwidth to take this up, please open a RFC with a proposal. |
Beta Was this translation helpful? Give feedback.
-
Currently you can only SKIP a future task by using the following API: https://netflix.github.io/conductor/apispec/#skip-task, but this doesn't let you SKIP a task that is already in FAILED state.
However, we have use cases where we need to SKIP a task that is in FAILED state (hence, continuing the workflow), looking at the API it seems the only operations supported on a workflow that failed because of a task failure are:
POST /workflow/{workflowId}/retry and POST /workflow/{workflowId}/rerun.
Are there any plans to support skipping a failed task by id, continuing the workflow, and keeping all of the execution history intact? If not, are there any suggestions as to how we could accomplish this?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions