Skip to content

Commit c19f39b

Browse files
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.
1 parent 02eafe8 commit c19f39b

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)