Increace waiter step

This commit is contained in:
imbolc 2022-07-17 00:45:29 +03:00
parent 1b01f1f069
commit 3e8c7b1bc7

View file

@ -336,7 +336,7 @@ impl JobRunnerHandle {
/// Wait for the jobs to finish, but not more than `timeout`
pub async fn wait_jobs_finish(&self, timeout: Duration) {
let start = Instant::now();
let step = Duration::from_millis(1);
let step = Duration::from_millis(10);
while self.num_running_jobs() > 0 && start.elapsed() < timeout {
tokio::time::sleep(step).await;
}