1

I have a project where I use Django with celery and I noticed when a task has errors I always have that message :

Task celery succeeded in 0.09006300568580627s: None

So I understand the task is finished but sometimes there are errors and I have succeeded which is for me not true. Besides, I have None and no informations.

Do you know if it is possible to get more informations instead of None ?

Thank you very much !

Peter
  • 11
  • 1

1 Answers1

1

what you return from the task get logged instead of None

def my_task():
   ....
   if all_good:
       return "success" 
   return "something went wrong"
Def Soudani
  • 1,151
  • 7
  • 17