Skip to main content

worker_process_shutdown_handler

Handles the shutdown signal for a worker process by printing a confirmation message to the console.

def worker_process_shutdown_handler(
sender: object,
pid: integer,
exitcode: integer,
**kwargs: dict
) - > null

Handles the cleanup logic when a worker process shuts down by logging the event to the console.

Parameters​

NameTypeDescription
senderobjectThe object that sent the shutdown signal.
pidintegerThe process ID of the worker process that is shutting down.
exitcodeintegerThe exit status code returned by the terminating process.
**kwargsdictAdditional keyword arguments passed by the signal dispatcher.

Returns​

TypeDescription
nullThis function does not return a value.