Skip to content

proxy: make save_state async with aiofiles#31

Open
elikoga wants to merge 1 commit into
mainfrom
PL-135349-slow-tasks
Open

proxy: make save_state async with aiofiles#31
elikoga wants to merge 1 commit into
mainfrom
PL-135349-slow-tasks

Conversation

@elikoga

@elikoga elikoga commented May 18, 2026

Copy link
Copy Markdown
Member

save_state() did synchronous file I/O (write + fsync + rename) on the hot health-check path, blocking the event loop. Replace with aiofiles for non-blocking file write.

All four call sites in backends.py updated to await the async method.

Fixes PL-135349 - at least it should

save_state() did synchronous file I/O (write + fsync + rename) on the
hot health-check path, blocking the event loop. Replace with aiofiles
for non-blocking file write.

All four call sites in backends.py updated to await the async method.

Fixes PL-135349
@elikoga elikoga force-pushed the PL-135349-slow-tasks branch from 718bf13 to dfa3a7c Compare May 18, 2026 13:27
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.

1 participant