public void retryLastFailedTask(String workflowId, boolean resumeSubworkflowTasks) {
        Preconditions.checkArgument(
                StringUtils.isNotBlank(workflowId), "workflow id cannot be blank");
        stub.retryWorkflow(
                WorkflowServicePb.RetryWorkflowRequest.newBuilder()
                        .setWorkflowId(workflowId)
                        .setResumeSubworkflowTasks(resumeSubworkflowTasks)
                        .build());
    }
Retries the last failed task in a workflow

@param workflowId the workflow id of the workflow with the failed task
grpc-client/src/main/java/com/netflix/conductor/client/grpc/WorkflowClient.java