Based on documentation, this handler is supposed to be called after the task returns.
The einfo
argument refers to the ExceptionInfo instance, the definition for which is found at http://docs.celeryproject.org/en/3.1/_modules/billiard/einfo.html
I was under the impression that after_return
will have an einfo
passed in IF the task has erred for any reason.
But when I tested it, seems like einfo
is always None. So looks like I am missing something.
Does anyone know under what circumstances will this einfo
be made available to after_return
? I want to use some attributes on this object in the after_return handler.