Watch
0
0
Fork
You've already forked hyperhive
0

swarm daemons exit 0 when told to stop while still waiting for the store at startup

This commit is contained in:
maia 2026-11-19 05:34:54 +01:00 • committed by mara
commit ae37c228b1

View file

@ -113,11 +113,15 @@ async fn main() -> Result<()> {
system: var("SYSTEM")?,
cache: push_target()?,
});
let secret =
swarm_secret_client::read_with_startup_retry("reading the queue client secret", || {
client_secret(&client_id)
})
.await?;
let Some(secret) = swarm_secret_client::read_with_startup_retry_or_stop(
"reading the queue client secret",
stop.clone(),
|| client_secret(&client_id),
)
.await?
else {
return Ok(());
};
let evaluator = archetypes::Evaluator {
nix: builder.nix.clone(),
hyperhive: builder.hyperhive.clone(),