Celery 'Getting Started' not able to retrieve results; always pending

后端 未结 3 856
甜味超标
甜味超标 2020-12-03 06:05

I\'ve been trying to follow the Celery First Steps With Celery and Next Steps guides. My setup is Windows 7 64-bit, Anaconda Python 2.7 (32-bit), Installed Erlang 32-bit bi

3条回答
  •  [愿得一人]
    2020-12-03 06:51

    .delay methods puts your task in queue. "result.state" is showing pending, which means your task in not yet executed. There might be a lot tasks, so its getting delayed.

    Check if there are any tasks running

    >>> from celery.task.control import inspect
    >>> i = inspect()
    >>> i.scheduled()
    >>> i.active()
    

提交回复
热议问题