Skip to content

Commit 40fa9c9

Browse files
authored
during the threading refactor, this call went forgotten (#724)
closes #723
1 parent 79e96ff commit 40fa9c9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

elasticapm/contrib/celery/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,10 @@ def end_transaction(task_id, task, *args, **kwargs):
7676

7777

7878
def _register_worker_signals(client):
79-
def worker_startup(*args, **kwargs):
80-
client._transport._start_event_processor()
81-
8279
def worker_shutdown(*args, **kwargs):
8380
client.close()
8481

8582
def connect_worker_process_init(*args, **kwargs):
86-
signals.worker_process_init.connect(worker_startup, dispatch_uid="elasticapm-start-worker", weak=False)
8783
signals.worker_process_shutdown.connect(worker_shutdown, dispatch_uid="elasticapm-shutdown-worker", weak=False)
8884

8985
signals.worker_init.connect(

tests/fixtures.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ def queue(self, event_type, data, flush=False):
233233
self.events[event_type].append(data)
234234
self._flushed.set()
235235

236-
def _start_event_processor(self):
236+
def start_thread(self):
237+
pass
238+
239+
def stop_thread(self):
237240
pass
238241

239242
def get_config(self, current_version=None, keys=None):

0 commit comments

Comments
 (0)