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 {
|
match approval.kind {
|
||||||
ApprovalKind::InitConfig => {
|
ApprovalKind::InitConfig => {
|
||||||
if ok {
|
if ok {
|
||||||
coord.notify_submitter(
|
coord
|
||||||
approval.id,
|
.push_todo_submitter(
|
||||||
&HelperEvent::ConfigReady {
|
approval.id,
|
||||||
agent: approval.agent.to_string(),
|
"core",
|
||||||
},
|
Some(format!("config_ready:{}", approval.agent)),
|
||||||
);
|
format!(
|
||||||
|
"agent '{}' config repo ready — edit + apply",
|
||||||
|
approval.agent
|
||||||
|
),
|
||||||
|
None,
|
||||||
|
)
|
||||||
|
.await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ApprovalKind::Spawn => {
|
ApprovalKind::Spawn => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue