Recurring jobs of an unregistered type keep firing and dead-lettering

Open
#3,276 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp

Research direction

Start with src/FluentCMS.Core/Jobs/RecurringJobs.cs, especially RecurringJobs.FireDueAsync at the lines cited in the issue, and trace how recurring jobs are registered, scheduled, and retried. The proposal leaves choices open for handling unregistered types and malformed payloads, so confirm the intended behavior with maintainers before implementing. Done means unregistered types create no new jobs and do not consume attempts on instances that do not know them.

Written by the indexing model from the issue text.

Description

area:jobs type:bug

Problem

RecurringJobs.FireDueAsync (src/FluentCMS.Core/Jobs/RecurringJobs.cs:54,92) never checks the job registry, and no code removes a recurring row. After a plugin is removed, its per-minute job makes about 1,440 dead-lettered jobs a day, each with activity and outbox rows; an unknown type also burns attempts on an old instance during a rolling deploy.

Proposal

Skip (and log once) or disable recurring rows whose type is unregistered; release unknown types without using an attempt and dead-letter them only after an orphan age; treat bad payloads as non-retryable.

Acceptance

  • A recurring job of an unregistered type makes no new jobs
  • An unknown type does not use attempts on an instance that does not know it

Found in the code review of 17 Nov 2026 (B5).

Dominant language
C#
Stars
569
Forks
107
Avg merge
2h 49m
Merged PRs (30d)
397

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluentcms/FluentCMS

All issues in fluentcms/FluentCMS

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.