public void updateTask(TaskResult taskResult) {
        Validate.notNull(taskResult, "Task result cannot be null");
        postForEntityWithRequestOnly("tasks", taskResult);
    }
Updates the result of a task execution. If the size of the task output payload is bigger than
{@link ConductorClientConfiguration#getTaskOutputPayloadThresholdKB()}, it is uploaded to
{@link ExternalPayloadStorage}, if enabled, else the task is marked as
FAILED_WITH_TERMINAL_ERROR.

@param taskResult the {@link TaskResult} of the executed task to be updated.
client/src/main/java/com/netflix/conductor/client/http/TaskClient.java