We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Similarly to #2312, recent versions of Celery require return Task.replace whereas previously raise Task.replace was preferred.
return Task.replace
raise Task.replace
For context, compare https://docs.celeryq.dev/en/3.0/reference/celery.app.task.html?highlight=raise%20self.replace#celery.app.task.Task.replace and https://docs.celeryq.dev/en/stable/reference/celery.app.task.html#celery.app.task.Task.replace
Update any tasks that use raise Task.replace, which includes the following tasks: https://github.com/mitodl/ocw-studio/blob/master/content_sync/tasks.py https://github.com/mitodl/ocw-studio/blob/master/ocw_import/tasks.py https://github.com/mitodl/ocw-studio/blob/master/gdrive_sync/tasks.py https://github.com/mitodl/ocw-studio/blob/master/videos/tasks.py
The text was updated successfully, but these errors were encountered:
pt2302
No branches or pull requests
Description/Context
Similarly to #2312, recent versions of Celery require
return Task.replace
whereas previouslyraise Task.replace
was preferred.For context, compare
https://docs.celeryq.dev/en/3.0/reference/celery.app.task.html?highlight=raise%20self.replace#celery.app.task.Task.replace
and
https://docs.celeryq.dev/en/stable/reference/celery.app.task.html#celery.app.task.Task.replace
Plan/Design
Update any tasks that use
raise Task.replace
, which includes the following tasks:https://github.com/mitodl/ocw-studio/blob/master/content_sync/tasks.py
https://github.com/mitodl/ocw-studio/blob/master/ocw_import/tasks.py
https://github.com/mitodl/ocw-studio/blob/master/gdrive_sync/tasks.py
https://github.com/mitodl/ocw-studio/blob/master/videos/tasks.py
The text was updated successfully, but these errors were encountered: