Five retention jobs have no attempt timeout

Aperta
#3,304 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

Start with the job registrations in src/FluentCMS.Core/DependencyInjection/FluentCmsServiceCollectionExtensions.cs:309 and :262-282, then read the retention loop in ActivityLog/ActivityRetentionJob.cs:53-70 and the related runner issues #3266, #3276, and #3285. Add a 10-minute attempt timeout for each of the five named jobs and check that timed-out work resumes on a later run without dead-lettering. Add a test that lists built-in jobs lacking timeouts.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:jobs type:bug

Problem

ActivityRetentionJob is registered without AttemptTimeout (src/FluentCMS.Core/DependencyInjection/FluentCmsServiceCollectionExtensions.cs:309), unlike JobRetentionJob and OutboxPruneJob, and the runner has no default. Its delete is batched and honours cancellation (ActivityLog/ActivityRetentionJob.cs:53-70) but the loop has no total bound. TrashPurgeJob, OidcPruneJob, UnverifiedMembersJob and IdempotencyRetentionJob are registered the same way (:262-282).

Proposal

Give the five jobs a 10-minute AttemptTimeout; each continues on its next run.

Done together with #3266, #3276 and #3285, which change the same runner and registrations.

Acceptance

  • Each retention job has an attempt timeout
  • A run stopped by the timeout leaves the remainder for the next run and is not dead-lettered
  • A test that lists registered built-in jobs without a timeout

Found in the code review of 17 Nov 2026.

Lingua principale
C#
Stelle
569
Fork
107
Merge medio
2h 49m
PR unite (30g)
397

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.