File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/service-library/src/servicelib/long_running_tasks Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ class TaskExceptionError(BaseLongRunningError):
3636
3737class TaskRaisedUnserializableError (BaseLongRunningError ):
3838 msg_template : str = (
39- "Task {task_id} finished with an unserializable exception: '{exception}'"
39+ "Task {task_id} raised an exception that could not be serialized.\n "
40+ "Original exception: '{original_exception_str}'\n "
41+ "As a consequence, the following error was raised: '{exception}'"
4042 )
4143
4244
Original file line number Diff line number Diff line change @@ -364,7 +364,9 @@ async def _tasks_monitor(self) -> None:
364364 result_field = ResultField (
365365 str_error = dumps (
366366 TaskRaisedUnserializableError (
367- task_id = task_id , exception = serialization_error
367+ task_id = task_id ,
368+ exception = serialization_error ,
369+ original_exception_str = f"{ e } " ,
368370 )
369371 )
370372 )
You can’t perform that action at this time.
0 commit comments