about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/castore/src/directoryservice/bigtable.rs4
-rw-r--r--tvix/store/src/pathinfoservice/bigtable.rs4
2 files changed, 6 insertions, 2 deletions
diff --git a/tvix/castore/src/directoryservice/bigtable.rs b/tvix/castore/src/directoryservice/bigtable.rs
index 372135628050..bee2fb15aeee 100644
--- a/tvix/castore/src/directoryservice/bigtable.rs
+++ b/tvix/castore/src/directoryservice/bigtable.rs
@@ -118,7 +118,9 @@ impl BigtableDirectoryService {
             .expect("failed to spwan emulator");
 
         Retry::spawn(
-            ExponentialBackoff::from_millis(20).max_delay(Duration::from_secs(1)),
+            ExponentialBackoff::from_millis(20)
+                .max_delay(Duration::from_secs(1))
+                .take(3),
             || async {
                 if socket_path.exists() {
                     Ok(())
diff --git a/tvix/store/src/pathinfoservice/bigtable.rs b/tvix/store/src/pathinfoservice/bigtable.rs
index cb16830165de..f49ef475eb37 100644
--- a/tvix/store/src/pathinfoservice/bigtable.rs
+++ b/tvix/store/src/pathinfoservice/bigtable.rs
@@ -119,7 +119,9 @@ impl BigtablePathInfoService {
             .expect("failed to spwan emulator");
 
         Retry::spawn(
-            ExponentialBackoff::from_millis(20).max_delay(Duration::from_secs(1)),
+            ExponentialBackoff::from_millis(20)
+                .max_delay(Duration::from_secs(1))
+                .take(3),
             || async {
                 if socket_path.exists() {
                     Ok(())