-
Notifications
You must be signed in to change notification settings - Fork 395
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
Cannot run ddtrace-run celery worker
attempts to execute celery with python
#493
Comments
Hello @jcummins54 and thanks for the feedback! I'm checking this issue with the |
Same error for me when lauching gunicorn. Looks like sys.argv is not filled for a good reason https://bugs.python.org/issue2972 |
After some tests, the error with gunicorn appears with ddtrace 0.12.1 AND setproctitle installed. |
Thanks @mgu for the investigation! We're preparing an alternative to make it work when Thank you! |
Sorry for the delay, but we're checking if the new way we're instrumenting Celery address properly this issue, so that the included patch can be reverted to avoid issues (as explained in https://bugs.python.org/issue2972). This is the last part we're missing, but we'll be sure to find the solution quickly and ship the new release next week. |
I can test your fix before the release if it can help |
Hi @jcummins54, @mgu I've been looking into this issue, can you provide some more detail about your setups? A regression test or sample app would be of great help! |
I will try to setup a test or a small app in order to reproduce this issue, I'll keep you updated |
Harder to reproduce than expected (on a dedicated app), I'll try something else tomorrow :) |
Hey @mgu thanks so much for the effort! Haha, I had absolutely no success replicating it either. Don't worry about trying to replicate further. We've changed our patching mechanism for If you could try using the Thanks 😄 |
Tested (with a fix to avoid undefined
Thanks a lot ! 😁 |
Great @mgu ! ok we'll connect all the dots to prepare our release. We had also other positive feedbacks so we can proceed. I'll keep the thread updated. Thank you very much, especially for your patience! |
ddtrace-run celery
runs the celery application, but if anything is added after "celery" ddtrace-run attempts to run it with python:Update: This is only an issue with ddtrace 0.12.1, verified that ddtrace 0.12.0 runs celery. However, we aren't seeing APM metrics in the dashboard either way.
The text was updated successfully, but these errors were encountered: