Mistakes happen... It would be nice if a workflow could be cancelled when accidentally triggered. In the case of issue assignment this can easily be mapped to unassigning the issue. We should introduce a boolean config option (cancel_on_unassign) to the github_issue_assigned and gitlab_issue_assigned triggers to enable cancellation when unassignment occurs.
When a workflow is cancelled we should essentially revert to a state as though it was never started. It should not be marked completed or failed, and re-assigning it should result in the same outcome as when it was first assigned.
For the data directory we should move the workspace into a directory called cancelled to preserve what has been done in a way that won't interfere with future runs.
Mistakes happen... It would be nice if a workflow could be cancelled when accidentally triggered. In the case of issue assignment this can easily be mapped to unassigning the issue. We should introduce a boolean config option (
cancel_on_unassign) to thegithub_issue_assignedandgitlab_issue_assignedtriggers to enable cancellation when unassignment occurs.When a workflow is cancelled we should essentially revert to a state as though it was never started. It should not be marked completed or failed, and re-assigning it should result in the same outcome as when it was first assigned.
For the data directory we should move the workspace into a directory called
cancelledto preserve what has been done in a way that won't interfere with future runs.