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

Make use of Celery delay_on_commit #2006

Open
jjnesbitt opened this issue Aug 16, 2024 · 0 comments
Open

Make use of Celery delay_on_commit #2006

jjnesbitt opened this issue Aug 16, 2024 · 0 comments
Assignees
Labels
technical debt Issues aimed at reducing technical debt zen task Simple and pleasant tasks to improve the codebase

Comments

@jjnesbitt
Copy link
Member

Celery 5.4 adds the DjangoTask.delay_on_commit function, which can be used instead of the following syntax that we currently use in several places:

transaction.on_commit(lambda: task.delay(arg))
@jjnesbitt jjnesbitt self-assigned this Aug 16, 2024
@waxlamp waxlamp added zen task Simple and pleasant tasks to improve the codebase technical debt Issues aimed at reducing technical debt labels Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical debt Issues aimed at reducing technical debt zen task Simple and pleasant tasks to improve the codebase
Projects
None yet
Development

No branches or pull requests

2 participants