Celery Received unregistered task of type (run example)

后端 未结 30 1847
旧时难觅i
旧时难觅i 2020-11-28 04:42

I\'m trying to run example from Celery documentation.

I run: celeryd --loglevel=INFO

/usr/local/lib/python2.7/dist-packages/celery/loade         


        
30条回答
  •  抹茶落季
    2020-11-28 05:12

    I had the same problem running tasks from Celery Beat. Celery doesn't like relative imports so in my celeryconfig.py, I had to explicitly set the full package name:

    app.conf.beat_schedule = {
       'add-every-30-seconds': {
            'task': 'full.path.to.add',
            'schedule': 30.0,
            'args': (16, 16)
        },
    }
    

提交回复
热议问题