wirybeaver commented on code in PR #2749:
URL:
https://github.com/apache/datafusion-ballista/pull/2749#discussion_r4646298953
##########
ballista/scheduler/src/state/aqe/mod.rs:
##########
@@ -1635,13 +1674,8 @@ impl ExecutionGraph for AdaptiveExecutionGraph {
let job_id = self.job_id.clone();
let session_id = self.session_id.clone();
- let mut next_task = self.stages.iter_mut().find(|(_stage_id, stage)| {
- if let ExecutionStage::Running(stage) = stage {
- stage.available_tasks() > 0
- } else {
- false
- }
- }).map(|(stage_id, stage)| {
+ let ready_id = self.get_running_stage_id(&[]);
Review Comment:
Done. `pop_next_task` keeps its original stage revival behavior.
--
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]