Skip to main content

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​

NameTypeDescription
stateobjectThe current application or worker state object used to manage task execution.
signalstringThe name of the POSIX signal to send to the task process (e.g., 'SIGTERM' or 'SIGKILL').
task_id`stringlist`
**kwargsdictAdditional keyword arguments passed to the underlying revoke mechanism.

Returns​

TypeDescription
objectThe result of the revoke operation, indicating the success of the termination request.