fix(scheduler): godzina na dedup po tytule i dlugosci
Przebieg nadrabiajacy zaleglosci scalil 67 tys. scen (xnxx/xvideos, ten sam tytul, dlugosc i obsada) i trwal 90 min, wiec przy limicie 30 min job raportowal sie jako zawieszony (Sentry GOON-V), mimo ze pracowal. Zaleglosc wzieła sie z restartow workera, ktore ucinaly wczesniejsze przebiegi. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
5640ee094d
commit
55adf8b1cb
1 changed files with 4 additions and 0 deletions
|
|
@ -390,9 +390,13 @@ def _job_title_duration_dedup() -> None:
|
||||||
try:
|
try:
|
||||||
from app.scheduler.title_duration_dedup import run_title_duration_dedup
|
from app.scheduler.title_duration_dedup import run_title_duration_dedup
|
||||||
|
|
||||||
|
# Godzina, nie domyslne 30 min: przebieg nadrabiajacy zaleglosci (po serii restartow
|
||||||
|
# workera, ktore ucinaly wczesniejsze) scalil 67 tys. scen i trwal 90 min, wiec job
|
||||||
|
# zglosil sie jako zawieszony, choc pracowal (2026-09-20, Sentry GOON-V).
|
||||||
_run_with_timeout(
|
_run_with_timeout(
|
||||||
lambda: run_title_duration_dedup(playback_only=True, commit=True),
|
lambda: run_title_duration_dedup(playback_only=True, commit=True),
|
||||||
label="title-duration-dedup",
|
label="title-duration-dedup",
|
||||||
|
timeout_sec=3600,
|
||||||
)
|
)
|
||||||
log.info("[scheduler] title-duration dedup done")
|
log.info("[scheduler] title-duration dedup done")
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue