mirror of
https://github.com/hansjone/netx.git
synced 2026-10-14 22:20:50 +08:00
Add biz_state Phase2 cutover compare (templates, port maps, jobs, UI).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
4fa1b9b4dc
commit
1e2cc98d49
15 changed files with 1525 additions and 1 deletions
|
|
@ -448,6 +448,13 @@ def _run_collect_session(
|
|||
else:
|
||||
batch.status = "success"
|
||||
db.commit()
|
||||
if batch.status in ("success", "partial"):
|
||||
try:
|
||||
from .compare_service import try_auto_compare_for_task
|
||||
|
||||
try_auto_compare_for_task(db, task_id, batch_id)
|
||||
except Exception:
|
||||
_log.exception("biz_state auto compare hook failed task=%s", task_id)
|
||||
|
||||
_purge_old_batches(db, task_id=task_id, keep=retention)
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue