delete c0re-side reminder plumbing (#2635 inc 1 commit 6)
This commit is contained in:
parent
dcb2b79715
commit
a80d0b0fed
16 changed files with 70 additions and 1136 deletions
|
|
@ -612,24 +612,6 @@ impl Coordinator {
|
|||
.map(|m| m.keys().cloned().collect())
|
||||
}
|
||||
|
||||
/// Emit a `RemindersChanged` snapshot event. Called from every
|
||||
/// reminder mutation site (agent `remind` calls, operator cancel /
|
||||
/// retry, and the scheduler after each delivery batch) so the
|
||||
/// dashboard's pending-reminders list stays live without polling.
|
||||
pub fn emit_reminders_snapshot(self: &Arc<Self>) {
|
||||
let reminders = match self.broker.list_pending_reminders() {
|
||||
Ok(rows) => rows,
|
||||
Err(e) => {
|
||||
tracing::warn!(error = ?e, "emit_reminders_snapshot: list failed");
|
||||
return;
|
||||
}
|
||||
};
|
||||
self.emit_dashboard_event(DashboardEvent::RemindersChanged {
|
||||
seq: self.next_seq(),
|
||||
reminders,
|
||||
});
|
||||
}
|
||||
|
||||
/// Emit a `CapabilitiesChanged` snapshot event. Called from the
|
||||
/// rebuild-queue worker after a `PermChange` / Capabilities entry
|
||||
/// commits the JSON file, so the P3RM1SS10NS tab updates live.
|
||||
|
|
@ -930,7 +912,7 @@ impl Coordinator {
|
|||
/// Cheap when nothing changed (one `nixos-container list` + a
|
||||
/// `HashMap` diff + zero emits).
|
||||
pub async fn rescan_containers_and_emit(self: &Arc<Self>) {
|
||||
let fresh = container_view::build_all(self).await;
|
||||
let fresh = container_view::build_all().await;
|
||||
let mut last = self.last_containers.lock().await;
|
||||
let mut changed_or_new = Vec::new();
|
||||
let mut removed = Vec::new();
|
||||
|
|
|
|||
Loading…
Reference in a new issue