phillipleblanc commented on code in PR #1893:
URL:
https://github.com/apache/datafusion-ballista/pull/1893#discussion_r3611672767
##########
ballista/scheduler/src/scheduler_server/query_stage_scheduler.rs:
##########
@@ -180,6 +180,11 @@ impl<T: 'static + AsLogicalPlan, U: 'static +
AsExecutionPlan>
.post_event(QueryStageSchedulerEvent::ReviveOffers)
.await?;
}
+
+ // Notify external systems that new work is available
+ if let Some(ref callback) = self.config.on_work_available {
+ callback(&format!("job_submitted:{job_id}"));
Review Comment:
Fixed. The callback now fires only after `graph.revive()` has run (in
`update_job`, and `submit_plan` revives before caching), which is the exact
point tasks become visible to poll_work. Now a woken executor's first poll
always finds the work.
--
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]