Retention: clean up old finished jobs and cron occurrences
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start with CONTRIBUTING.md for the clean-room rule, then read the existing decisions in site/decisions/ to match the ADR format. The payload names no code files, so the store providers (core, EF Core, MongoDB, Redis) have to be located from the repository. Done means an ADR for the retention settings, a bounded-batch cleanup that skips pending, running and unfinished-chain rows, a single-leader guard, logging of removed counts, and tests per provider.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
TickerNet keeps every finished time ticker and every cron occurrence forever. Nothing in the core, EF Core, MongoDB or Redis providers deletes old rows, so the tables grow without limit, and the dashboard's graphs and lists get slower as they do. Users have to write their own cleanup job against the store.
Expected
An opt-in retention setting, for example:
- how long to keep time tickers and cron occurrences, per final status (
Done,DueDone,Failed,Cancelled,Skipped), with failures typically kept longer; - optionally, a cap on how many occurrences to keep per cron ticker;
- a background cleanup that deletes in bounded batches, so a large backlog doesn't lock the table;
- never deleting rows that are pending, running, or part of a chain that isn't finished.
Notes
- One leader is enough. Without Redis, use the store (a conditional update) so several nodes don't all run the cleanup at once, or make the delete safe to run concurrently.
- Log or trace how many rows each pass removed.
Part of the TickerQ comparison roadmap. Design it from this description only: never read or copy code, tests or docs from TickerQ 10.5.0 or later, which is under a commercial license (see CONTRIBUTING.md). If it adds or changes public API, add an ADR in site/decisions/ and list the API in the pull request. Comment here if you'd like to pick it up, and ask anything in Discussions.
- Lingua principale
- C#
- Stelle
- 0
- Fork
- 2
- Merge medio
- 1h 8m
- PR unite (30g)
- 24
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TickerNet/TickerNet
-
.NET bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
.NET enhancement good first issue roadmap
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Document PathBase inside the dashboard branch and WebDAV on IISForse già presa @harryhawwy69 l’ha presa oggi. Apertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 40/100
I maintainer di solito rispondono entro 1 giorno
-
TickerFunctionProvider's registry is publicly writableForse già presa @harryhawwy69 l’ha presa oggi. Aperta.NET bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
Cron editor accepts 7 for Sunday, then saving fails with a generic errorForse già presa @harryhawwy69 l’ha presa oggi. Apertabug good first issue javascript
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TickerNet/TickerNet
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
dotnet-outdated/dotnet-outdated#871 ·
I maintainer di solito rispondono entro 1 giorno
-
triage/untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
unoplatform/uno#26676 ·
I maintainer di solito rispondono entro 1 giorno
-
[问题] 导出文件时,提示后面还有1243390911步Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jhaizhou-ops/S2Arm#2177 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
area-CodeGen-coreclr untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
dotnet/runtime#138181 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
CO spearhead is too loudApertaS: Untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 2 giorni