Celery did remove the celery.decorators module, or at least tasks is not part of that anymore. Therefore, mimicking the previous behaviour, we have to import the current Celery app and use that task. OpenCraft currently upgrading Celery on the edX platform as well, so we wouldn't need to bump xblock-poll twice in the platform:
Description
This PR ensures that
xblock-poll
supportsAlso
tox
for testingsetup.py
Supporting information
Celery did remove the
celery.decorators
module, or at leasttasks
is not part of that anymore. Therefore, mimicking the previous behaviour, we have to import the current Celery app and use that task. OpenCraft currently upgrading Celery on the edX platform as well, so we wouldn't need to bump xblock-poll twice in the platform:Dependencies
Testing instructions
tox
-- get a coffee, it will take a while because of bok-choyDeadline
ASAP
Reviewers
@arbrandes