Browse Source

fix(celery): Stop reporting metrics directly after worker init (#64102)

reverts https://github.com/getsentry/sentry/pull/62795

We think this causes SIGABRT, and there's a clear correlation between
the deploy where that PR went out vs the errors appearing.

I don't really understand why this would break but the metric is only
nice-to-have anyway
Markus Unterwaditzer 1 year ago
parent
commit
bdcb808111
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/sentry/celery.py

+ 0 - 5
src/sentry/celery.py

@@ -112,11 +112,6 @@ class SentryCelery(Celery):
     task_cls = SentryTask
 
 
-@signals.worker_process_init.connect
-def record_worker_init(*args, **kwargs):
-    metrics.incr("jobs.process.start")
-
-
 app = SentryCelery("sentry")
 app.config_from_object(settings)
 app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)