0
をかけながら、私はこのエラーを持っていた...のpythonを再起動する小さな話だセロリの設定
が必要になります。
AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for'
DiederikがCelery with RabbitMQ: AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for'
app = Celery('tasks', backend='rpc://', broker='amqp://[email protected]//')
で言ったように、tasks.py変更した場合
実行しました
>>> from tasks import add
>>> result = add.delay(4,50)
>>> result.ready()
は...うーんそれが何をした...再びDisabledBackendを得た
はrun.pyをファイルにコードを入れて、それがtrueを返した...
from tasks import add
try:
result = add.delay(1,4)
print (result.ready())
except:
print "exept"
私は、タスクのインポートから>>>を呼び出す場合ていることがわかり私は理由を理解することができないので、私は〜runthis.pyのようなスクリプトからDEBUGにアドバイスする
私のアイデアを打ち破る答えがうれしいです...
アイデアに感謝を再インポートタスクモジュールを強制します。 – Riorita
詳細はhttp://stackoverflow.com/questions/2534480/proper-way-to-reload-a-python-module-from-the-console – Riorita