fix: preserve native reads and advancing metadata operations
This commit is contained in:
1 parent
5b7e7bea2f
commit
07206ce0d1
5 files changed
+128
-8
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user