terminate
Terminate task by task id (or list of ids).
def terminate(
state: object,
signal: string,
task_id: string | list,
**kwargs: dict
) - > object
Terminate task by task id (or list of ids).
Parameters
| Name | Type | Description |
|---|---|---|
| state | object | The current application or worker state object used to manage task execution. |
| signal | string | The name of the POSIX signal to send to the task process (e.g., 'SIGTERM' or 'SIGKILL'). |
| task_id | `string | list` |
| **kwargs | dict | Additional keyword arguments passed to the underlying revoke mechanism. |
Returns
| Type | Description |
|---|---|
object | The result of the revoke operation, indicating the success of the termination request. |