-
Notifications
You must be signed in to change notification settings - Fork 527
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
Enforce functools.wraps on all monkeypatches #421
Comments
Do you see this bug in Raven-Python? Raven uses official Celery hooks while this SDK aggressively (for lack of a better word) monkeypatches Celery to capture exceptions happening in hooks, and to work around some bugs in Celery 3. |
I think I've narrowed it down to an issue with I don't think this is strictly an issue with the SDK, so I'll close this for now, thanks for looking at it though. |
@mumumumu if it's a missing functools.wraps somewhere we can fix it in the SDK as well, no big deal |
Thanks @untitaker, that'd be much appreciated. Adding a |
We should do this everywhere then. Monkeypatches are quite inconsistent across the codebase. |
Since this is blocking you I'll just get a minimal fix out of the door. Proper wrapping will likely take more effort (possibly using wrapt instead of functools). |
I'm using
celery-once
to make sure some tasks are only run one at a time. The lock is acquired inapply_async
and released inafter_return
.When I use the
CeleryIntegration
I'm not seeing any of the locks being released after the task has finished running. I'm not very familiar with the inner workings of celery, but any ideas what's going on?The text was updated successfully, but these errors were encountered: