public void updateTaskDef(TaskDef taskDef) {
        Preconditions.checkNotNull(taskDef, "Task definition cannot be null");
        stub.updateTask(
                MetadataServicePb.UpdateTaskRequest.newBuilder()
                        .setTask(protoMapper.toProto(taskDef))
                        .build());
    }
Updates an existing task definition

@param taskDef the task definition to be updated
grpc-client/src/main/java/com/netflix/conductor/client/grpc/MetadataClient.java