fix(#438): use QueueSource::AutoUpdate for StartupSweep parent, fix AutoUpdate doc
This commit is contained in:
parent
ba7e9b0ef2
commit
025746b674
2 changed files with 10 additions and 6 deletions
|
|
@ -220,7 +220,7 @@ pub async fn run(coord: Arc<Coordinator>) -> Result<()> {
|
|||
let sweep_id = coord.rebuild_queue.enqueue(
|
||||
crate::rebuild_queue::QueueKind::StartupSweep,
|
||||
"hyperhive".to_owned(),
|
||||
crate::rebuild_queue::QueueSource::Manual,
|
||||
crate::rebuild_queue::QueueSource::AutoUpdate,
|
||||
format!("startup sweep ({} containers)", containers.len()),
|
||||
None,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -60,12 +60,16 @@ pub enum QueueSource {
|
|||
/// the originating meta-update.
|
||||
MetaUpdate,
|
||||
/// `auto_update::run` startup sweep — rebuild every container on
|
||||
/// hive-c0re boot. Child rebuilds of a `StartupSweep` entry use
|
||||
/// this source; the `parent_id` links them to the parent.
|
||||
/// hive-c0re boot. Legacy flat source (no parent); replaced by
|
||||
/// `StartupSweep` for the parent entry and child rebuilds once the
|
||||
/// queue introduced `parent_id` grouping. Kept for wire compatibility
|
||||
/// with entries logged before the migration.
|
||||
AutoUpdate,
|
||||
/// Direct child of a `StartupSweep` queue entry. Same semantics
|
||||
/// as `AutoUpdate` but carries the `parent_id` back-link so the
|
||||
/// dashboard can render the sweep's per-agent rebuilds nested.
|
||||
/// Direct child of a `StartupSweep` queue entry — one per agent in
|
||||
/// the boot-time rebuild sweep. Carries `parent_id` back-link so
|
||||
/// the dashboard renders the sweep's per-agent rebuilds nested under
|
||||
/// the parent header. The parent entry itself uses `QueueSource::AutoUpdate`
|
||||
/// (automated boot action, not operator-driven).
|
||||
StartupSweep,
|
||||
/// Crash recovery path (future use — currently no auto-rebuild on
|
||||
/// crash, but the variant exists for the imminent feature).
|
||||
|
|
|
|||
Loading…
Reference in a new issue