fix: preserve native reads and advancing metadata operations

This commit is contained in:
阿白叔 committed 2026-11-17 00:39:30 +08:00
1 parent 5b7e7bea2f
commit 07206ce0d1
5 files changed
+128 -8

No files matched your search

+10
View File
@@ -99,6 +99,16 @@ def check_active():
raise QueueCancelled('任务已取消,未提交新的原生操作。')
def note_metadata_progress():
"""Renew inactivity only after completed I/O; never revive an abandoned call."""
call = getattr(_local, 'call', None)
if call is not None:
with _tasks_guard:
if not call.native_depth:
check_active()
call.phase_started = time.monotonic()
def remember_result(result):
call = getattr(_local, 'call', None)
if call is not None: