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
| Name | Type | Description |
|---|---|---|
| sender | object | The object that sent the shutdown signal. |
| pid | integer | The process ID of the worker process that is shutting down. |
| exitcode | integer | The exit status code returned by the terminating process. |
| **kwargs | dict | Additional keyword arguments passed by the signal dispatcher. |
Returns
| Type | Description |
|---|---|
null | This function does not return a value. |