Skip to main content

worker_init_handler

Prints a confirmation message to the console when a Celery worker process is initialized.

def worker_init_handler(
sender: object,
**kwargs: dict
) - > null

Handles the Celery worker_init signal to perform initialization tasks when a worker process starts.

Parameters

NameTypeDescription
senderobjectThe sender of the signal, typically the Celery worker instance.
**kwargsdictAdditional keyword arguments passed by the Celery signal dispatcher.

Returns

TypeDescription
nullNothing is returned by this signal handler.