Skip to content

Commit 0b7855e

Browse files
zxqfd555Manul from Pathway
authored andcommitted
add retries to sharepoint connection queries (#9831)
GitOrigin-RevId: ce38f3a8642372741734be6692565f9c19351941
1 parent 5cc8907 commit 0b7855e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1111
- Workers can now automatically scale up or down based on pipeline load, using a configurable monitoring window. This feature requires persistence to be enabled and can be configured via `worker_scaling_enabled` and `workload_tracking_window_ms` in `pw.persistence.Config`. Please refer to the tutorial for more details.
1212
- `pw.io.postgres.write` now properly supports TLS configuration via `sslmode` and `sslrootcert` connection string parameters.
1313

14+
### Changelog
15+
- `pw.xpacks.connectors.read` now retries initial connection requests.
16+
1417
## [0.29.0] - 2026-01-22
1518

1619
### Added

python/pathway/xpacks/connectors/sharepoint/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def get_snapshot_diff(self):
105105
root_folder = self._context.web.get_folder_by_server_relative_path(
106106
self._root_path
107107
)
108-
files = root_folder.get_files(self._recursive).execute_query()
108+
files = root_folder.get_files(self._recursive).execute_query_retry()
109109

110110
updated_entries = []
111111
deleted_entries = []
@@ -128,7 +128,7 @@ def get_snapshot_diff(self):
128128
if size_limit_exceeded:
129129
content = b""
130130
else:
131-
content = file.get_content().execute_query().value
131+
content = file.get_content().execute_query_retry().value
132132
updated_entries.append((content, metadata))
133133
self._stored_metadata[metadata.path] = metadata
134134
seen_objects.add(metadata.path)
@@ -247,7 +247,7 @@ def context(self):
247247
)
248248
current_web = context.web
249249
context.load(current_web)
250-
context.execute_query()
250+
context.execute_query_retry()
251251
return context
252252

253253

0 commit comments

Comments
 (0)