Skip to content
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

Strange behavior when retrying a failed job contained in a cancelled workflow #99

Open
lukasmu opened this issue Apr 21, 2024 · 0 comments

Comments

@lukasmu
Copy link
Contributor

lukasmu commented Apr 21, 2024

Situation:

  • There is a Workflow instance in 'cancelled' state
  • The Workflow instance contains a WorkflowJob in 'failed' state
  • The retry method of the WorkflowJob instance is invoked

Result:
A job is dispatched to the queue. This job appears to run just fine. However, the handle method of the job is never executed.

Idea:
Maybe it should not be allowed to start jobs at all when they belong to a Workflow instance in 'cancelled' state. In this case we might want to raise an exception (similar to the one raised when trying to call the retry method of a WorkflowJob instance that is not in a failed state).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant