Capturing task errors #13
Closed
RealOrangeOne
started this conversation in
General
Replies: 1 comment
-
Moving discussion to #63 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Because the
result
of a task must be JSON serializable, it's not possible to pass the exception back to theTaskResult
to expose to the user. For failed tasks,.result
will always beNone
.How important is it that the exception be retrievable? Is there an alternative way to serialize the exception (even just its name) to pass back instead?
The exception is handled using
logger.exception
, allowing it to be obtained by monitoring addons (eg Sentry).Beta Was this translation helpful? Give feedback.
All reactions