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

[PR #5896/2bef8a39 backport][3.65] Fix scheduled task purge failing without user #5899

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Oct 11, 2024

This is a backport of PR #5896 as merged into main (2bef8a3).

When a task was dispatched by a task schedule, there is no user attached to it. So purge tasks should just look at all tasks. However when a user gets deleted after dispatching that task, the task will run with current_user=None also. We need to make sure not to purge too many tasks in this case.

fixes #5881

When a task was dispatched by a task schedule, there is no user attached
to it. Such purge tasks should just look at all tasks.

fixes #5881

(cherry picked from commit 2bef8a3)
@mdellweg mdellweg merged commit 7f37c0a into 3.65 Oct 12, 2024
12 checks passed
@mdellweg mdellweg deleted the patchback/backports/3.65/2bef8a395ee9fea20a5ff1a6903b73f959187cf4/pr-5896 branch October 12, 2024 10:14
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

Successfully merging this pull request may close these issues.

1 participant