mirror of
https://github.com/Diggsey/sqlxmq.git
synced 2024-05-31 23:48:12 +00:00
Increace waiter step
This commit is contained in:
parent
1b01f1f069
commit
3e8c7b1bc7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue