deltakit.explorer.Client.kill#

Client.kill(request_id: str) int#

Kill a decoding task submitted to a client. Decoding methods report a request ID. Calling this method with an ID tries to kill all CPU workers associated with the task. Method returns the number of CPU workers it could terminate. If the task is already finished, the method should return 0.

Parameters:

request_id (str) – ID of the requests which started the decoding task.

Returns:

number of workers killed

Return type:

int