Skip to content

What happens when code changes between task scheduling and execution? #110

Closed Answered by RealOrangeOne
daniboygg asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, it's whatever is deployed at the time the task is executed that will be run - not whatever is running at enqueue time. In most cases, this is probably fine. For tasks using run_after, this could be a problem, but I think it's fairly niche.

At some point, I'd like to add a TTL to tasks, whereby if they're unexecuted for too long, they're cancelled. That might be a way to work around this if it were causing issues.

I think the ideal solution is to ensure task changes are backwards compatible for applications with large queue depths.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RealOrangeOne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants