You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #309. I am experiencing the same issue myself, and haven't found a way of serializing exceptions. I am using orjson, but like msgpack it cannot serialize exceptions either.
One solution could be to convert the exception to a string and then return that one, e.g
importsysimporttracebacktry:
... # Your code hereexceptMyException:
exception_string="".join(traceback.format_exception(*sys.exc_info()))
returnexception_string
But this is not a really good solution as you would need to manually process this string in the caller, and it is a really non-standard way of handling exceptions
I found out my ArqRedis had set decode_responses=True, which was the reason i needed orjson as a custom serializer in the first place. By setting decode_responses=False (the default), the default serializer (pickle) can serialize both exceptions as well as "normal" return values
On using msgpack, raising arq.Retry error after max retries raising the following error.
The text was updated successfully, but these errors were encountered: