pub struct ScheduleExecutor { /* private fields */ }Expand description
Executes scheduled agent jobs.
Implementations§
Source§impl ScheduleExecutor
impl ScheduleExecutor
pub fn new(llm: Arc<dyn Provider>, config: Config) -> Self
Sourcepub async fn run_once(
&self,
schedule: &Schedule,
sink: &dyn StreamSink,
) -> Result<JobOutcome, String>
pub async fn run_once( &self, schedule: &Schedule, sink: &dyn StreamSink, ) -> Result<JobOutcome, String>
Run a single schedule by name (for agent schedule run).
Sourcepub async fn check_and_run(&self, store: &ScheduleStore)
pub async fn check_and_run(&self, store: &ScheduleStore)
Check all schedules and run any that are due.
Auto Trait Implementations§
impl Freeze for ScheduleExecutor
impl !RefUnwindSafe for ScheduleExecutor
impl Send for ScheduleExecutor
impl Sync for ScheduleExecutor
impl Unpin for ScheduleExecutor
impl UnsafeUnpin for ScheduleExecutor
impl !UnwindSafe for ScheduleExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more