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.
When users sends broadcast, they have option to send multiple re-attempts in this format:
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 theallowedTimeFrame, the system will reschedule the broadcast to the next allowed time.