Feature Request: Skip blocked Workflow execution #10396
Labels
area/mutex-semaphore
solution/superseded
This PR or issue has been superseded by another one (slightly different from a duplicate)
type/feature
Feature request
Summary
When a Workflow execution is blocked because of semaphore or mutex, we want to skip the blocked Workflow instead of current wait&run
Use Cases
We're using ArgoEvents to submit a Workflow from WorkflowTemplate (and in our case, this is time-based so maybe the same thing can be said for CronWorkflow but we don't use it so not sure).
Sometimes, a Workflow execution takes longer than the period we're configuring in the cron setting. In such cases, we want to cancel the second execution (which will be blocked to be run until the first one completes).
For example, assume a Workflow that will be executed once an hour by ArgoEvents and now is 00:00. The Workflow is limited to be run just once at the same time, using semaphore or mutex.
First, a Workflow execution for 00:00 will be submitted and it takes 1.5 hours long to complete the task. Then next Workflow execution for 01:00 will be submitted but the 00:00 one is still running so blocked due to semaphore or mutex. We want to cancel/skip this 01:00 one and want to expect the 02:00 one, but with the current implementation, the 01:00 one will be executed at 01:30 and the 02:00 one will be blocked.
So here's a feature request: Adding an option not to execute the Workflow when the Workflow is blocked because of semaphore or mutex.
Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
The text was updated successfully, but these errors were encountered: