fix: admit explicit ICDB maintenance with preserved address evidence
This commit is contained in:
1 parent
4f741cd176
commit
e39dc63ded
10 files changed
+691
-25
No files matched your search
@@ -239,7 +239,8 @@ def repair_release_state(request, target, native_result):
|
||||
return result
|
||||
|
||||
|
||||
def run_native_repair(target, root, *, mentor_bin='', timeout_seconds=300, progress=None):
|
||||
def run_native_repair(target, root, *, mentor_bin='', timeout_seconds=300, progress=None,
|
||||
maintenance_context=None):
|
||||
"""Supervise the GUI on its own desktop; a repair timeout never kills it."""
|
||||
from .desktop_worker import DesktopWorker
|
||||
root = Path(root)
|
||||
@@ -249,7 +250,8 @@ def run_native_repair(target, root, *, mentor_bin='', timeout_seconds=300, progr
|
||||
desktop = 'CbbRepair_'+uuid4().hex[:12]
|
||||
job_path.write_text(json.dumps({'project': str(target.project), 'database': str(target.database),
|
||||
'root': str(root), 'mentor_bin': str(mentor_bin or ''), 'timeout': timeout_seconds,
|
||||
'cancel_signal': str(cancel), 'supervisor_pid': os.getpid(), 'desktop': desktop},
|
||||
'cancel_signal': str(cancel), 'supervisor_pid': os.getpid(), 'desktop': desktop,
|
||||
'maintenance_context': maintenance_context},
|
||||
ensure_ascii=False), encoding='utf-8')
|
||||
command = ([sys.executable] if getattr(sys, 'frozen', False) else
|
||||
[sys.executable, '-m', 'cbb_refresh_verify']) + ['--repair-worker', str(job_path)]
|
||||
|
||||
Reference in new issue
Block a user