public void terminate ( String jobId , String taskId , TaskTerminateOptions taskTerminateOptions ) { terminateWithServiceResponseAsync ( jobId , taskId , taskTerminateOptions ) . toBlocking ( ) . single ( ) . body ( ) ; }
Terminates the specified task . When the task has been terminated it moves to the completed state . For multi - instance tasks the terminate task operation applies synchronously to the primary task ; subtasks are then terminated asynchronously in the background .