reminder: add background scheduler loop - checks & delivers due reminders every 5s
This commit is contained in:
parent
4fc9c02934
commit
f38510930a
2 changed files with 50 additions and 0 deletions
|
|
@ -118,6 +118,10 @@ impl Coordinator {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn list_agents(&self) -> Vec<String> {
|
||||
self.agents.lock().unwrap().keys().cloned().collect()
|
||||
}
|
||||
|
||||
/// Mark an agent as in-progress (only one state per agent for now).
|
||||
pub fn set_transient(&self, name: &str, kind: TransientKind) {
|
||||
self.transient.lock().unwrap().insert(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue