> To unsubscribe from this group and stop receiving emails from it, send an email to
openrem+u...@googlegroups.com.
Hi Ed,
My tasks.py seems normal from what I can tell:
"""
.. module:: tasks.py
:synopsis: Module to import all the functions that run as Celery tasks.
"""
from __future__ import absolute_import
from celery import shared_task # pylint: disable=unused-import
from remapp.exports.mg_export import exportMG2excel # pylint: disable=unused-import
from remapp.exports.ct_export import ctxlsx, ct_csv # pylint: disable=unused-import
from remapp.exports.mg_csv_nhsbsp import mg_csv_nhsbsp # pylint: disable=unused-import
from remapp.exports.dx_export import exportDX2excel, dxxlsx # pylint: disable=unused-import
from remapp.exports.rf_export import exportFL2excel, rfxlsx # pylint: disable=unused-import
from remapp.extractors.ptsizecsv2db import websizeimport # pylint: disable=unused-import
from remapp.extractors.dx import dx # pylint: disable=unused-import
from remapp.extractors.rdsr import rdsr # pylint: disable=unused-import
from remapp.extractors.mam import mam # pylint: disable=unused-import
from remapp.extractors.ct_philips import ct_philips # pylint: disable=unused-import
from remapp.netdicom.qrscu import qrscu, movescu # pylint: disable=unused-import
from remapp.netdicom.keepalive import keep_alive # pylint: disable=unused-import
from remapp.tools.make_skin_map import make_skin_map # pylint: disable=unused-import
I tried deleting the .pyc version too but that made no difference. From my understanding, these tasks are imported through the django apps in settings.py which has remapp as an app. They're imported through the line:
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
in celery.py. The celery docs (
http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html) seem to suggest from version 4.0+ only:
app.autodiscover_tasks()
Should be needed to discover tasks, although this doesn't make any difference to my issue.
Thanks,
Ben