Skip to content
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 trigger Celery task when I add sentry in settings.py (django) #2723

Closed
amzar96 opened this issue Feb 9, 2024 · 4 comments
Closed

Comments

@amzar96
Copy link

amzar96 commented Feb 9, 2024

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.40.3

Steps to Reproduce

  1. Create celery task in the django
  2. Trigger the endpoint that containt the celery task
  3. Error show up

Expected Result

No error

Actual Result

[2024-02-09 18:46:15,606: ERROR/MainProcess] Process 'ForkPoolWorker-4' pid:3944 exited with 'signal 11 (SIGSEGV)'
[2024-02-09 18:46:15,766: ERROR/MainProcess] Task handler raised error: WorkerLostError('Worker exited prematurely: signal 11 (SIGSEGV) Job: 0.')
Traceback (most recent call last):
  File "/Users/amzar/Documents/python_env/xxx/lib/python3.11/site-packages/billiard/pool.py", line 1264, in mark_as_worker_lost
    raise WorkerLostError(
billiard.einfo.ExceptionWithTraceback:
"""
Traceback (most recent call last):
  File "/Users/amzar/Documents/python_env/xxx/lib/python3.11/site-packages/billiard/pool.py", line 1264, in mark_as_worker_lost
    raise WorkerLostError(
billiard.exceptions.WorkerLostError: Worker exited prematurely: signal 11 (SIGSEGV) Job: 0.
"""
@amzar96 amzar96 changed the title Cannot trigger Celery task when I add sentry in settings.py Cannot trigger Celery task when I add sentry in settings.py (django) Feb 9, 2024
@sentrivana
Copy link
Contributor

Hey @amzar96, thanks for the report.

Does this still happen when you downgrade the SDK to version 1.39.2? Does it happen if you leave the SDK out of the mix completely, i.e., when you do not call sentry_sdk.init at all?

@amzar96
Copy link
Author

amzar96 commented Feb 12, 2024

@sentrivana

I realized the error only occurred after hitting the Celery task for the first time the celery worker ran. After I made the next hit to the Celery task, it worked as expected.

Till now not sure what is caused

@amzar96
Copy link
Author

amzar96 commented Feb 12, 2024

@sentrivana

Not yet try to downgrade the SDK. I will try it later.

@getsantry
Copy link

getsantry bot commented Mar 6, 2024

This issue 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 remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Mar 6, 2024
@getsantry getsantry bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants