refactor(#2591): make NodeKind the queue payload — drop JobPayload, agent into variants
This commit is contained in:
parent
2294cd4516
commit
be2dfa8cd3
8 changed files with 233 additions and 177 deletions
|
|
@ -325,7 +325,6 @@ fn submit_boot_tree(
|
|||
// MetaLock into `run_meta_lock`, which appends the rebuild subgraphs.
|
||||
if any_stale {
|
||||
nodes.push(NodeSpec {
|
||||
agent: "hyperhive".to_owned(),
|
||||
kind: NodeKind::MetaLock {
|
||||
sweep: true,
|
||||
fanout: Some(fanout),
|
||||
|
|
@ -337,8 +336,7 @@ fn submit_boot_tree(
|
|||
// One boot Reconcile per drifted agent — independent roots.
|
||||
for name in drifted {
|
||||
nodes.push(NodeSpec {
|
||||
agent: name,
|
||||
kind: NodeKind::Reconcile,
|
||||
kind: NodeKind::Reconcile { agent: name },
|
||||
deps: Vec::new(),
|
||||
parent: None,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue