Problem/Motivation

When email has reached maximum amount of retry threshold it will be deleted from system and will be lost.
As administrator / moderator I don't want to lose emails that have not been send because of mail server downtime.

Proposed resolution

Add ability to send emails constantly until they will not been send od deleted manually from queue.

User interface changes

ToBeDescribed

Comments

andriyun created an issue. See original summary.

andriyun’s picture

Status: Active » Needs review
StatusFileSize
new2.29 KB

Please check suggested patch

sinn’s picture

Thank you @andriyun for the proposal.

Patch looks good but let's allow just one setting to manage threshold limit. "threshold" value can be set "-1" for unlimited case. Such option can be defined in the description of the field "Queue retry threshold" or option "Limited"/"Unlimited" can be set as first step. See "cardinality" widget implementation in the `core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php`. Also would be nice to have test for it.

sinn’s picture

Status: Needs review » Needs work
kyberman’s picture

Status: Needs work » Needs review
StatusFileSize
new1.3 KB

Hi, I like the single field idea, so I simplified that a little bit more:
- appended "Leave empty for unlimited." to the description
- adding to the queue also if the value is not set (Drupal stores empty number fields as "NULL")

sinn’s picture

StatusFileSize
new6.12 KB

Solution #5 with the tests

  • sinn committed 684b33f8 on 8.x-1.x
    Issue #3155823: Ability to send email constantly with unlimited retry...
sinn’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.