|
@@ -85,8 +85,9 @@ def jail(task_id, task_name, func, args, kwargs):
|
|
|
except (SystemExit, KeyboardInterrupt):
|
|
|
raise
|
|
|
except Exception, exc:
|
|
|
- default_backend.mark_as_failure(task_id, exc)
|
|
|
- retval = ExceptionInfo(sys.exc_info())
|
|
|
+ stored_exc = default_backend.mark_as_failure(task_id, exc)
|
|
|
+ type_, _, tb = sys.exc_info()
|
|
|
+ retval = ExceptionInfo((type_, stored_exc, tb)
|
|
|
else:
|
|
|
if not ignore_result:
|
|
|
default_backend.mark_as_done(task_id, result)
|