Skip to content

Commit 01d0c84

Browse files
Check new experiments every two minutes
Discovering a new experiment extremely quickly is not really necessary for agents, so avoid hitting the server every 5 seconds (from ~4 machines) for this information. We might also ideally want some jitter here, but that is somewhat annoying to add and doesn't seem particularly necessary.
1 parent 0f1b671 commit 01d0c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agent/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl AgentApi {
131131
return Ok((experiment, crates));
132132
}
133133

134-
::std::thread::sleep(::std::time::Duration::from_secs(RETRY_AFTER));
134+
::std::thread::sleep(::std::time::Duration::from_secs(120));
135135
})
136136
}
137137

0 commit comments

Comments
 (0)