-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError raised on Celery exception #3280
Comments
My error is same. Environment
Error Message
|
Same error here. Environment:
error:
|
This appears intractable from our side. This is a result of celery's assumptions about exception objects not matching SQLAlchemy exception behavior, and celery not having any way to query task state without trying to serialize exception objects. |
Note, I've left some details about my investigation in the upstream ticket celery/celery#5057. My understanding: a) SQLAlchemy uses rich exception classes that Celery can't currently serialize using the (default in 4.x) json serializer for broker b) Redash switched from the pickle serializer to the JSON serializer with the upgrade from 3.x to 4.x assuming exceptions keep being serialized successfully Options to move forward:
@arikfr What do you think? |
I believe I've solved the underlying issue. #3499 |
I'm still seeing this issue on
(I have a Sentry trace if you need more information) |
Issue Summary
As part of the API to get the status of a job we've seen increased number of TypeError raised when the query for the job in question fails (for an unrelated reason) with an sqlalchemy.exc.IntegrityError exception. The cause for that exception is not clear (possibly fork related), but the purpose of this ticket is to investigate the way errors are handled in general and the cause of the error in not relevant per se.
celery/celery#5057 describes the result pretty well, but here's our traceback:
Steps to Reproduce
data
column (which is not allowed AFAIK).Technical details:
The text was updated successfully, but these errors were encountered: