fix: harden utility export recovery
This commit is contained in:
@@ -148,12 +148,6 @@ class ControllerService:
|
||||
self.store,
|
||||
on_event=self._queue_download_event,
|
||||
)
|
||||
try:
|
||||
self.downloads.reconcile_export_artifacts()
|
||||
except BaseException:
|
||||
LOG.exception(
|
||||
"utility export reconciliation failed; Controller startup continues"
|
||||
)
|
||||
# Cleanup is deliberately deferred until fresh Player evidence
|
||||
# (or an explicit administrative reconciliation) makes it safe.
|
||||
self._reset_cleanup_evidence()
|
||||
@@ -171,6 +165,11 @@ class ControllerService:
|
||||
self._coordinator.start()
|
||||
self.mqtt.start()
|
||||
self._started = True
|
||||
# A crash-published playlist may contain many files to probe.
|
||||
# Queue that bounded work only after core readiness and keep it
|
||||
# on the dedicated export executor, so MQTT reconnect and
|
||||
# Player coordination never wait for recovery to finish.
|
||||
self.downloads.schedule_export_reconciliation()
|
||||
except BaseException:
|
||||
self._stop_event.set()
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user