hive-c0re: push ConfigReady as a todo, not a broker message
This commit is contained in:
parent
836284a22d
commit
e52ceef2b6
1 changed files with 12 additions and 6 deletions
|
|
@ -739,12 +739,18 @@ async fn finish_approval(
|
|||
match approval.kind {
|
||||
ApprovalKind::InitConfig => {
|
||||
if ok {
|
||||
coord.notify_submitter(
|
||||
approval.id,
|
||||
&HelperEvent::ConfigReady {
|
||||
agent: approval.agent.to_string(),
|
||||
},
|
||||
);
|
||||
coord
|
||||
.push_todo_submitter(
|
||||
approval.id,
|
||||
"core",
|
||||
Some(format!("config_ready:{}", approval.agent)),
|
||||
format!(
|
||||
"agent '{}' config repo ready — edit + apply",
|
||||
approval.agent
|
||||
),
|
||||
None,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
}
|
||||
ApprovalKind::Spawn => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue