Skip to main content

worker_shutdown_handler

Handles the worker_shutdown signal by printing a confirmation message to the standard output.

def worker_shutdown_handler(
sender: object,
**kwargs: dict
)

Handles the worker shutdown signal to perform cleanup tasks when the Celery worker process terminates.

Parameters

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

Returns

TypeDescription
Nothing is returned by this signal handler.