xiangfu0 commented on code in PR #8465: URL: https://github.com/apache/pinot/pull/8465#discussion_r843360981
########## pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTaskRestletResource.java: ########## @@ -346,6 +347,29 @@ public StringResultResponse getTaskStateDeprecated( } } + @GET + @Path("/tasks/all") + @Authenticate(AccessType.READ) + @ApiOperation("Read all tasks status") + public Map<String, TaskState> getAllTasks() { + Map<String, TaskState> taskStates = new HashMap<>(); + _pinotHelixTaskResourceManager.getTaskTypes() + .forEach(taskType -> taskStates.putAll(_pinotHelixTaskResourceManager.getTaskStates(taskType))); + return taskStates; + } + + @POST + @Path("/tasks/create") + @Authenticate(AccessType.CREATE) Review Comment: Will change this method to mandate taskType, table, taskName with the extra map of configs. ``` public Map<String, String> executeAdhocTask( @ApiParam(value = "Task type", required = true) @PathParam("taskType") String taskType, @ApiParam(value = "Table name", required = true) @PathParam("tableName") String tableName, @ApiParam(value = "taskName name is unique within a task type", required = true) @PathParam("taskName") String taskName, Map<String, String> taskConfigs) { ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org