shutdown
Shutdown worker(s).
def shutdown(
state: Any,
msg: string = 'Got shutdown from remote',
**kwargs: dict
) - > null
Shutdown worker(s).
Parameters
| Name | Type | Description |
|---|---|---|
| state | Any | The current internal state or context of the worker process |
| msg | string = 'Got shutdown from remote' | The log message explaining the reason for the shutdown, which is recorded at the warning level before termination |
| **kwargs | dict | Additional keyword arguments passed by the control command decorator |
Returns
| Type | Description |
|---|---|
null | This function does not return a value as it raises a WorkerShutdown exception to terminate the process. |