Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Celery 的日志中有
Task blabla.bla.bla[arguments] succeeded in 0.757446050644s: None
如何None用更有意义的东西代替它?我试图return在任务中设定价值,但没有运气。
None
return
ignore_result=True您是否使用(或设置CELERY_IGNORE_RESULT为)定义您的任务True?如果你这样做了,你应该尝试禁用它。
ignore_result=True
CELERY_IGNORE_RESULT
True