code: public void update(String jobId, String taskId, TaskConstraints constraints, TaskUpdateOptions taskUpdateOptions) {
          updateWithServiceResponseAsync(jobId, taskId, constraints, taskUpdateOptions).toBlocking().single().body();
      }
docs: Updates the properties of the specified task.
  
  @param jobId The ID of the job containing the task.
  @param taskId The ID of the task to update.
  @param constraints Constraints that apply to this task. If omitted, the task is given the default constraints. For multi-instance tasks, updating the retention time applies only to the primary task and not subtasks.
  @param taskUpdateOptions Additional parameters for the operation
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws BatchErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent