Skip to content

Document Retry Strategy configuration fields#720

Open
promptless-for-oss wants to merge 4 commits into
mautic:7.1from
Promptless:promptless/retry-strategy-validation
Open

Document Retry Strategy configuration fields#720
promptless-for-oss wants to merge 4 commits into
mautic:7.1from
Promptless:promptless/retry-strategy-validation

Conversation

@promptless-for-oss

Copy link
Copy Markdown

Open this suggestion in Promptless to view citations and reasoning process

Add documentation for the Queue Settings → Retry Strategy fields (Max retries, Delay, Multiplier, Max delay) including their default values and valid ranges. Notably documents that Multiplier values less than 1 are not allowed, preventing configuration errors that could crash the queue worker.

Trigger Events


Tip: Set up a GitHub Issues trigger in Projects to enable @Promptless mentions in issues 🐙

Add documentation for the four Queue Settings → Retry Strategy fields:
- Max retries (default: 3, can be 0 to disable)
- Delay (default: 1000 ms)
- Multiplier (default: 2, must be ≥ 1)
- Max delay (default: 0 for no limit)

Also fixes British to American English spelling (behaviour → behavior).

Related to mautic/mautic#16157 which adds form validation for these fields.
@promptless-for-oss promptless-for-oss requested a review from a team as a code owner May 22, 2026 19:09
@promptless-for-oss promptless-for-oss requested review from adiati98 and favour-chibueze and removed request for a team May 22, 2026 19:09
Comment thread docs/configuration/settings.rst Outdated

* **Max retries** - The maximum number of times Mautic retries a failed message before giving up. Set to ``0`` to disable retries. The default is ``3``.

* **Delay** - The initial delay in milliseconds before the first retry attempt. The default is ``1000`` (1 second).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added Multiplier constraint documentation based on PR #16157 which adds form validation requiring messenger_retry_strategy_multiplier >= 1 to prevent MultiplierRetryStrategy crash from values < 1. Also documented the other three retry strategy fields and their defaults from the same PR.

Source: mautic/mautic#16157

@adiati98 adiati98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@promptless-for-oss please address the suggestions.

Comment thread docs/configuration/settings.rst Outdated
Comment thread docs/configuration/settings.rst Outdated
- Change "disable retries" to "turn off retries" for Max retries field
- Adjust Delay field phrasing to use ", which is" instead of parentheses
@adiati98 adiati98 added this to the Mautic 7.1 milestone May 25, 2026
@promptless-for-oss

Copy link
Copy Markdown
Author

Thanks for the review feedback, @adiati98! I've applied both suggested changes:

  1. ✅ Changed "disable retries" → "turn off retries" for the Max retries field
  2. ✅ Changed parenthetical "(1 second)" → ", which is 1 second" for the Delay field

@adiati98

Copy link
Copy Markdown
Contributor

@promptless-for-oss please see and address the feedback from the original PR author at mautic/mautic:

I checked it against the code change. It mostly matches: the defaults are right, and the multiplier rule is covered. The only small gap is that the code also rejects negative values for Max retries, Delay, and Max delay, so it would be good to mention those ranges too. Other than that, it looks aligned to me.

Document that Max retries, Delay, and Max delay fields reject negative
values, based on reviewer feedback from @adiati98 who verified this
against the source code changes.
@promptless-for-oss promptless-for-oss requested review from a team and adiati98 May 27, 2026 07:48
@promptless-for-oss

Copy link
Copy Markdown
Author

Thanks for the review feedback, @adiati98! I've updated the documentation to note that Max retries, Delay, and Max delay fields also reject negative values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants