phillipleblanc commented on code in PR #1891:
URL:
https://github.com/apache/datafusion-ballista/pull/1891#discussion_r3611649177
##########
ballista/scheduler/src/scheduler_server/mod.rs:
##########
@@ -85,9 +88,20 @@ pub struct SchedulerServer<T: 'static + AsLogicalPlan, U:
'static + AsExecutionP
query_stage_scheduler: Arc<QueryStageScheduler<T, U>>,
/// Scheduler configuration.
config: Arc<SchedulerConfig>,
+ /// Broadcast sender for job state change notifications.
+ ///
+ /// Subscribers can receive notifications when jobs change state by calling
+ /// `subscribe_job_updates()`.
+ job_state_sender: broadcast::Sender<job_state_event::JobStateEvent>,
}
impl<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan>
SchedulerServer<T, U> {
+ /// Default capacity for the job state broadcast channel.
+ ///
+ /// This determines how many job state events can be buffered before
+ /// slow receivers start lagging behind.
+ const JOB_STATE_CHANNEL_CAPACITY: usize = 256;
Review Comment:
This is now configurable.
--
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]