org.llm4s.agent.service.Schedule
See theSchedule companion object
@Experimental
A scheduled run (#2446, decision 1): agent agentId is started with input at each time cron names in zone, on the thread target names, as tenant tenantId.
Build one with Schedule.apply and the with* setters; a ScheduleStore fills in the rest:
revision: 0 until the schedule is stored, then the number the store gave its latest version: each update moves it on, a claim of a fire time never does. An update is a compare-and-set on it (ScheduleStore.update), so two edits from one read conflict while an edit never conflicts with the scheduler. A key's revisions never repeat, across a delete and a create again.createdAt,updatedAt: when the store created and last updated it, by the store's clock.nextFireAt: the next fire time no instance has claimed yet; each claim moves it on.
paused is set with withPaused: a paused schedule is never due and never claimed.
Attributes
- Companion
- object
- Source
- Schedule.scala
- Graph
-
- Supertypes
Members list
In this article
