Clarify queue cleanup and detached sync logs

This commit is contained in:
Dymas
2026-05-26 07:20:54 +02:00
parent f5c476162e
commit 28410b2946
7 changed files with 42 additions and 5 deletions
+4 -1
View File
@@ -1163,7 +1163,10 @@ class DownloadQueue:
if watchlist_sync_error:
job.setdefault("log", []).append(f"Watchlist sync failed: {watchlist_sync_error}")
elif self.watchlist_sync_fn is not None:
job.setdefault("log", []).append("Watchlist download state synced.")
if job.get("skip_watchlist_sync"):
job.setdefault("log", []).append("Watchlist sync skipped for detached job.")
else:
job.setdefault("log", []).append("Watchlist download state synced.")
else:
job["status"] = "failed"
job.setdefault("log", []).append(f"Download failed with exit code {exit_code}.")