Skip to content

Commit 776c98c

Browse files
committed
Auto merge of #638 - Mark-Simulacrum:health, r=Mark-Simulacrum
Don't go unhealthy when idle between experiments We'll likely want to turn off our VMs during such periods but that's a separate question and not really a health check one.
2 parents 02eafe8 + c19f39b commit 776c98c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/agent/api.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ impl AgentApi {
131131
return Ok((experiment, crates));
132132
}
133133

134+
// If we're just waiting for an experiment, we should be considered
135+
// healthy.
136+
crate::agent::set_healthy();
137+
134138
::std::thread::sleep(::std::time::Duration::from_secs(120));
135139
})
136140
}

0 commit comments

Comments
 (0)