Here我知道如何向Flower发送事件。接下来,我尝试在我的代码中使用它,就像在github issue中一样。我的版本:
@celery.task()
def add():
try:
...
except Exception as exc:
add.send_event('task-failed', exception=str(exc))如果出现错误,Flower会收到失败任务的信息:
但当我尝试点击并找到关于它的额外信息时,我看到:
Information about failed tasks
我应该如何使用send_event?
https://stackoverflow.com/questions/47634440
复制相似问题