mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
perpetual: import the jobs helper inside its reconcile step
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
587bd8d2bf
commit
19ae0e15ac
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,6 @@ def reconcile_after_predecessor(app) -> dict:
|
|||
"""
|
||||
from wrolpi.downloader import download_manager, Download, DownloadStatus
|
||||
from wrolpi.files.worker import file_worker
|
||||
from wrolpi.jobs import fail_orphaned_jobs
|
||||
from wrolpi.db import get_db_session
|
||||
|
||||
report = dict(locks=[], jobs=0, downloads=0, processing_domains=0, file_worker_jobs=0)
|
||||
|
|
@ -167,6 +166,7 @@ def reconcile_after_predecessor(app) -> dict:
|
|||
report['locks'] = heal_shared_locks(app)
|
||||
|
||||
try:
|
||||
from wrolpi.jobs import fail_orphaned_jobs
|
||||
report['jobs'] = fail_orphaned_jobs()
|
||||
except Exception as e:
|
||||
logger.error('reconcile: failed to fail orphaned Jobs', exc_info=e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue