Skip to content

Commit e273377

Browse files
committed
Fix: Increase retry attempts for object retrieval in live backend to handle race conditions
1 parent c0a5486 commit e273377

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datalab_kernel/workspace.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,9 +697,9 @@ def add(self, name: str, obj: DataObject, overwrite: bool = False) -> DataObject
697697
ValueError: If object exists and overwrite=False
698698
"""
699699
self._backend.add(name, obj, overwrite=overwrite)
700-
# For live backend, allow brief retry window for object to appear
701-
# This handles potential race conditions with XML-RPC
702-
for _ in range(5):
700+
# For live backend, allow retry window for object to appear
701+
# This handles race conditions with XML-RPC (especially on Python 3.9)
702+
for _ in range(20):
703703
try:
704704
return self._backend.get(name)
705705
except KeyError:

0 commit comments

Comments
 (0)