0

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.

user3732361
  • 377
  • 8
  • 13

1 Answers1

1

It seems like a bug, I found that after_return is always get invoked with einfo = None, github. It is probably worth reporting about the issue

Community
  • 1
  • 1
Greenev
  • 871
  • 6
  • 23