diff --git a/gateway/src/task.rs b/gateway/src/task.rs index 1fc27ca54..97274db53 100644 --- a/gateway/src/task.rs +++ b/gateway/src/task.rs @@ -309,7 +309,7 @@ impl Task for RunUntilDone { async fn poll(&mut self, ctx: ProjectContext) -> TaskResult { // Don't overload Docker with requests. Therefore backoff with each try up to 30 seconds if self.tries > 0 { - let backoff = min(3_u64.pow(self.tries), 30_000); + let backoff = min(2_u64.pow(self.tries), 300); sleep(Duration::from_millis(backoff)).await; }