diff options
author | Florian Klink <flokli@flokli.de> | 2024-04-13T10·33+0300 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2024-04-13T12·01+0000 |
commit | 31e3382129f6a750f2d2eec840cc7bb1c2db80ce (patch) | |
tree | db6f4c6cf528534f2d1c737484b09585cf7127d2 /tvix/castore/src/directoryservice/bigtable.rs | |
parent | 0dd421414e0bf111269329a113753e0bf8591204 (diff) |
feat(tvix/*store/bigtable): limit retries connecting to cbtemulator r/7906
This kept retrying indefinitely if the socket didn't appear. Change-Id: I4d4ef61df73cef6abda698501432f370abc8a82c Reviewed-on: https://cl.tvl.fyi/c/depot/+/11406 Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/castore/src/directoryservice/bigtable.rs')
-rw-r--r-- | tvix/castore/src/directoryservice/bigtable.rs | 4 |
1 files changed, 3 insertions, 1 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(()) |