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(
|
let sweep_id = coord.rebuild_queue.enqueue(
|
||||||
crate::rebuild_queue::QueueKind::StartupSweep,
|
crate::rebuild_queue::QueueKind::StartupSweep,
|
||||||
"hyperhive".to_owned(),
|
"hyperhive".to_owned(),
|
||||||
crate::rebuild_queue::QueueSource::Manual,
|
crate::rebuild_queue::QueueSource::AutoUpdate,
|
||||||
format!("startup sweep ({} containers)", containers.len()),
|
format!("startup sweep ({} containers)", containers.len()),
|
||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -60,12 +60,16 @@ pub enum QueueSource {
|
||||||
/// the originating meta-update.
|
/// the originating meta-update.
|
||||||
MetaUpdate,
|
MetaUpdate,
|
||||||
/// `auto_update::run` startup sweep — rebuild every container on
|
/// `auto_update::run` startup sweep — rebuild every container on
|
||||||
/// hive-c0re boot. Child rebuilds of a `StartupSweep` entry use
|
/// hive-c0re boot. Legacy flat source (no parent); replaced by
|
||||||
/// this source; the `parent_id` links them to the parent.
|
/// `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,
|
AutoUpdate,
|
||||||
/// Direct child of a `StartupSweep` queue entry. Same semantics
|
/// Direct child of a `StartupSweep` queue entry — one per agent in
|
||||||
/// as `AutoUpdate` but carries the `parent_id` back-link so the
|
/// the boot-time rebuild sweep. Carries `parent_id` back-link so
|
||||||
/// dashboard can render the sweep's per-agent rebuilds nested.
|
/// 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,
|
StartupSweep,
|
||||||
/// Crash recovery path (future use — currently no auto-rebuild on
|
/// Crash recovery path (future use — currently no auto-rebuild on
|
||||||
/// crash, but the variant exists for the imminent feature).
|
/// crash, but the variant exists for the imminent feature).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue