fix: renew metadata inactivity after completed occupancy checks
This commit is contained in:
1 parent
8bfa4eed34
commit
eaff46e50e
3 files changed
+75
No files matched your search
@@ -33,6 +33,7 @@ def _idle_check(library, project, pcb, *, confirmation=None, evidence=None, bloc
|
||||
from .icdb_ownership import database_directories, unreleased_addresses
|
||||
from contextlib import ExitStack
|
||||
import win32con, win32file
|
||||
from .operation_queue import note_metadata_progress
|
||||
directories = database_directories(library, project, pcb)
|
||||
scope = (Path(project).parent, *directories)
|
||||
def owners():
|
||||
@@ -61,6 +62,7 @@ def _idle_check(library, project, pcb, *, confirmation=None, evidence=None, bloc
|
||||
unknown = owners()
|
||||
resources() # Never hold exclusive probe handles while waiting for a user.
|
||||
if not unknown:
|
||||
note_metadata_progress()
|
||||
return
|
||||
if confirmation is None:
|
||||
from .write_admission import WriteAdmissionDeclined
|
||||
@@ -71,6 +73,7 @@ def _idle_check(library, project, pcb, *, confirmation=None, evidence=None, bloc
|
||||
if unknown and not confirmation.confirmed(library, unknown):
|
||||
raise ValueError('TARGET_NATIVE_OWNER_UNCONFIRMED: 占用确认后出现新的未知进程,请重新检查。')
|
||||
resources()
|
||||
note_metadata_progress()
|
||||
|
||||
|
||||
def _native_scope_match(command, *, roots=(), files=()):
|
||||
|
||||
@@ -135,6 +135,8 @@ def recheck_previous_release(library, evidence_dir, *, block_name=None, required
|
||||
except Exception as error:
|
||||
notify('previous_release_unconfirmed', detail=str(error))
|
||||
raise
|
||||
from .operation_queue import note_metadata_progress
|
||||
note_metadata_progress()
|
||||
notify('previous_release_confirmed', release_proof=proof,
|
||||
detail='已确认会话释放并归档历史记录;这不表示历史数据已恢复')
|
||||
return proof
|
||||
|
||||
Reference in new issue
Block a user