MCPcopy
hub / github.com/celery/celery / on_worker_init

Method on_worker_init

celery/loaders/base.py:74–75  ·  view source on GitHub ↗

Called when the worker (:program:`celery worker`) starts.

(self)

Source from the content-addressed store, hash-verified

72 """Called after a task is executed."""
73
74 def on_worker_init(self):
75 """Called when the worker (:program:`celery worker`) starts."""
76
77 def on_worker_shutdown(self):
78 """Called when the worker (:program:`celery worker`) shuts down."""

Callers 5

init_workerMethod · 0.95
test_handlers_passMethod · 0.45
test_on_worker_initMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_handlers_passMethod · 0.36
test_on_worker_initMethod · 0.36