Skip to content

Retry failed broadcasts using custom time difference #7

@santosh-rumsan

Description

@santosh-rumsan

When users sends broadcast, they have option to send multiple re-attempts in this format:

{
    ...
    "maxAttempts":3,
    "options": {
        ...
        "attemptIntervalMinutes": "5,60",
        "allowedTimeFrame": "09:00-18:00",
        ...
    }
    ...
}

In the above example, the broadcast will be sent 3 times. If the first attempt fails, the second attempt will be sent after 5 minutes and the third attempt will be sent after 60 minutes. After each attempt, the system will rescheduled the next attempt based on the time difference provided in attemptIntervalMinutes. Rescheduling is currently done using bullmq scheduler. If the scheduled time falls outside of the allowedTimeFrame, the system will reschedule the broadcast to the next allowed time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions