Skip to content

python(refactor): refactor files using run_in_executor to use the int…#518

Merged
wei-qlu merged 3 commits into
mainfrom
python/refactor-for-executor-util
Mar 31, 2026
Merged

python(refactor): refactor files using run_in_executor to use the int…#518
wei-qlu merged 3 commits into
mainfrom
python/refactor-for-executor-util

Conversation

@wei-qlu
Copy link
Copy Markdown
Contributor

@wei-qlu wei-qlu commented Mar 30, 2026

What was changed

Created a util function wrapping the functionality to run a sync function in an async context. Replaced existing instances of outdated get_event_loop() and run_in_executor() to use run_sync_function, fixing deprecation warnings and centralizing the pattern in one place.

Verification

Ran the unit and integration tests, no regressions.

@wei-qlu wei-qlu requested a review from solidiquis March 30, 2026 07:53
@wei-qlu wei-qlu marked this pull request as ready for review March 30, 2026 08:07
nathan-sift
nathan-sift previously approved these changes Mar 30, 2026
Copy link
Copy Markdown
Contributor

@nathan-sift nathan-sift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread python/lib/sift_client/_internal/low_level_wrappers/remote_files.py Outdated
@wei-qlu wei-qlu enabled auto-merge (squash) March 31, 2026 22:52
@wei-qlu wei-qlu merged commit 4003b91 into main Mar 31, 2026
21 checks passed
@wei-qlu wei-qlu deleted the python/refactor-for-executor-util branch March 31, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants