YongGang commented on code in PR #16041: URL: https://github.com/apache/druid/pull/16041#discussion_r1562769570
########## extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/util/MultiStageQueryContext.java: ########## @@ -143,6 +143,13 @@ public class MultiStageQueryContext public static final String CTX_IS_REINDEX = "isReindex"; + /** + * Key for controller task's context passed to worker tasks. + * Facilitates sharing the controller's execution environment + * and configurations with its associated worker tasks. + */ + public static final String CTX_OF_CONTROLLER = "controllerCtx"; Review Comment: My thinking on this: https://github.com/apache/druid/pull/16041#discussion_r1556171737 My follow up work will need to read the Controller's ctx when managing/scheduling Worker task as only Controller task has the full task info (e.g. hard to know if it's an async download task from the Worker task itself), these labels/tags need to be generated based on Controller task then pass on to Worker to guide the task execution. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
