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

后端 未结 3 858
甜味超标
甜味超标 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条回答
  •  -上瘾入骨i
    2020-12-03 06:49

    You must add track_started=True. Well, it's hard to know this option.

    The default value is False, so you will always get PENDING when the task is not finished. Besides, you must config wrong on backend or broker. Plz check them again.

    @app.task(bind=True, track_started=True)
    def add(x, y):
        return x + y
    

提交回复
热议问题