-
Notifications
You must be signed in to change notification settings - Fork 485
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
Keeping compatibility with celery 4.x.x BaseTask subclass like PeriodicTask #1151
Conversation
Hi @ahmedetefy What are your thoughts about this change? I would like to know if I am on the right path. Thanks |
Hey @kalmik My approach was similar.. but I decided not to pursue it because it doesn't capture spans properly (for performance). This is probably because Celery was setting the functions on this legacy Class dynamically on runtime so I was not able to monkey patch it, if I remember correctly Anyways, considering this again maybe its not a bad idea to add this to not break backwards compatibility if we document that performance might not work properly with this hack... Can you please document that somewhere and add a test? |
Sure thing, I can provide it shortly. |
I didn't forget about it, I've created the test and I think I could get the way to get it patched correctly (I HOPE) I think by this week I came up with the final patch. |
This pull request has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Or at lease add information in migration guid, that old celery is not supported (I have celery version 3.1.27 in project and it also broken by newest sentry-sdk) |
Hey @kalmik ! Sorry for the very late reply. I again tried to reproduce the problems described in #844 and could not reproduce it. I also read the celery source and Sentry is currently patching This class is there in Celery 3-5: Your patch would monkey patch I am sorry, but I will close this issue. If there is still something really breaking then please create a new issue with detailed information about versions of Sentry SDK and Celery and an example on how to reproduce it. |
fix #844
I'm using sentry_sdk 1.3.0 on python 2.7 with celery 4.4.6 and I'm having an issue with apply_async from PeriodicTask task instances. Following the @ahmedetefy leads I decided to open this PullRequest I'm not sure if it is the best way to fix that.