deleteTasksIDRunsID method

Future<void> deleteTasksIDRunsID(
  1. String taskID,
  2. String runID, {
  3. String? zapTraceSpan,
})

Cancel a running task

Parameters:

  • String taskID (required): The task ID.

  • String runID (required): The run ID.

  • String zapTraceSpan: OpenTracing span context

Implementation

Future<void> deleteTasksIDRunsID(String taskID, String runID,
    {String? zapTraceSpan}) async {
  final response = await deleteTasksIDRunsIDWithHttpInfo(taskID, runID,
      zapTraceSpan: zapTraceSpan);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}