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
On task error, task.AsyncTaskiqTask.get_result will emit "Cannot parse..." log warnings that are not really helpful especially considering detailed error information is available elsewhere. Moreover, the result both return_value=None which means serialization to non-None types will always fail.
Would it make sense to wrap that conditionally log only if the result does not an error? e.g.
current
exceptValueError:
logger.warning("Cannot parse return type into %s", self.return_type)
proposed
exceptValueError:
ifnotres.is_err:
logger.warning("Cannot parse return type into %s", self.return_type)
Activity