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

Refactor Task subclasses into decorated functions #3973

Closed
1 of 2 tasks
agjohnson opened this issue Apr 19, 2018 · 1 comment
Closed
1 of 2 tasks

Refactor Task subclasses into decorated functions #3973

agjohnson opened this issue Apr 19, 2018 · 1 comment
Milestone

Comments

@agjohnson
Copy link
Contributor

agjohnson commented Apr 19, 2018

Breaking out the task steps in order to reduce shared state on the tasks means
that we no longer need custom classes here. We should reduce the Task subclasses
back down to decorated functions, which preserve the naming, queue, and other
properties of the task.

  • project.tasks
  • core.util.tasks
@humitos
Copy link
Member

humitos commented May 9, 2018

We were hitting this at #3946. Here is the official explanation of this (which is not a bug in Celery --but a potential feature :D): http://docs.celeryproject.org/en/latest/userguide/tasks.html#instantiation

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

2 participants