fix(scheduler): keep run history 180 days, as long as the audit log kept the runs it moved over
This commit is contained in:
@@ -268,9 +268,10 @@ class Settings(BaseSettings):
|
|||||||
# YouTube quota history (quota_events): days kept (0 = forever). A year, so the admin usage view's
|
# YouTube quota history (quota_events): days kept (0 = forever). A year, so the admin usage view's
|
||||||
# longest window (365 days) stays whole; the same daily cleanup job prunes it.
|
# longest window (365 days) stays whole; the same daily cleanup job prunes it.
|
||||||
quota_retention_days: int = 365
|
quota_retention_days: int = 365
|
||||||
# Background-run history (job_runs): days kept (0 = forever). Every run is a row (~1–1.5k a day
|
# Background-run history (job_runs): days kept (0 = forever). The audit log's 180, which is how
|
||||||
# at the default intervals), so a month; the same daily cleanup job prunes it.
|
# long a run lived there before it moved here: ~1.8k rows a day at the default intervals
|
||||||
job_run_retention_days: int = 30
|
# (measured 2026-10-17), ~320k at the limit. The same daily cleanup job prunes it.
|
||||||
|
job_run_retention_days: int = 180
|
||||||
# On-disk layout: "plex" (Channel/Season YYYY/… [id].ext + .nfo/poster) or "flat".
|
# On-disk layout: "plex" (Channel/Season YYYY/… [id].ext + .nfo/poster) or "flat".
|
||||||
download_layout: DownloadLayout = "plex"
|
download_layout: DownloadLayout = "plex"
|
||||||
# Default SponsorBlock (skip sponsor segments) for new custom profiles.
|
# Default SponsorBlock (skip sponsor segments) for new custom profiles.
|
||||||
|
|||||||
@@ -172,7 +172,7 @@
|
|||||||
},
|
},
|
||||||
"job_run_retention_days": {
|
"job_run_retention_days": {
|
||||||
"label": "Run history (days)",
|
"label": "Run history (days)",
|
||||||
"hint": "How long the history of background runs (scheduled, run now, a channel's full history) is kept before the cleanup job prunes it. 0 = keep forever. Default 30."
|
"hint": "How long the history of background runs (scheduled, run now, a channel's full history) is kept before the cleanup job prunes it. 0 = keep forever. Default 180."
|
||||||
},
|
},
|
||||||
"log_level": {
|
"log_level": {
|
||||||
"label": "Log level",
|
"label": "Log level",
|
||||||
|
|||||||
@@ -172,7 +172,7 @@
|
|||||||
},
|
},
|
||||||
"job_run_retention_days": {
|
"job_run_retention_days": {
|
||||||
"label": "Futási előzmények (nap)",
|
"label": "Futási előzmények (nap)",
|
||||||
"hint": "Meddig maradnak meg a háttérfutások (ütemezett, azonnali, egy csatorna teljes előzménye) adatai, mielőtt a takarító feladat törli őket. 0 = örökre. Alapérték 30."
|
"hint": "Meddig maradnak meg a háttérfutások (ütemezett, azonnali, egy csatorna teljes előzménye) adatai, mielőtt a takarító feladat törli őket. 0 = örökre. Alapérték 180."
|
||||||
},
|
},
|
||||||
"log_level": {
|
"log_level": {
|
||||||
"label": "Naplózási szint",
|
"label": "Naplózási szint",
|
||||||
|
|||||||
Reference in New Issue
Block a user