Watch
0
0
Fork
You've already forked hyperhive
0

queue the build of a config head that moved without a webhook build

This commit is contained in:
atlas 2026-11-02 03:23:47 +01:00 • committed by mara
commit b7d8c0dfc0

View file

@ -30,8 +30,8 @@ use crate::routes::{self, AppState, agents, config_prs, forge_admin, hives, jobq
use crate::{
agent_control, agent_custom, agent_icon, agent_input, agent_limits, agent_login,
agent_permissions, agent_renewal, agent_state_stream, agent_status, agents_md, alerts,
archetypes, auth, backend_env, builder, claude_login, config_pr, egress_allow, forge,
forge_account, github_account, gitlab_account, inference, issue_report, linked_accounts,
archetypes, auth, backend_env, builder, claude_login, config_drift, config_pr, egress_allow,
forge, forge_account, github_account, gitlab_account, inference, issue_report, linked_accounts,
matrix_account, message_stream, notify_flows, notify_router_api, pulls, queue_identity,
review_classifier, schedules, status, subagent_term, term_stream, wanted, webhook,
};
@ -568,8 +568,14 @@ pub(crate) async fn start_forge(
}
};
forge::enable(url, forge_client, move |client| {
let drift = queue.clone().map(|queue| config_drift::Deps {
jobq: Arc::clone(&jobq),
wanted: Arc::new(wanted::WantedWriter::new(queue.clone())),
hives: hives.iter().map(|h| h.name.clone()).collect(),
queue,
});
spawn_forge_workers(&jobq, Arc::clone(&client), &hives, auth, queue);
config_prs.get_or_init(|| config_pr::spawn(Arc::clone(&client)));
config_prs.get_or_init(|| config_pr::spawn(Arc::clone(&client), drift));
register_swarm_webhooks(client, webhook_secret);
})
.await;