Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Mantis 17620 - Predictable embargo time when repeating a message #2
In a similar way to pull request 1, this pull request changes the way that the new embargo is calculated when a message is repeated.
It adds a multiple of the repeat interval to the current embargo so that the new value is in the future, i.e. greater than the current time. The usual case will be to add the repeat interval once, which is the same as the current processing, but when the queue processing has been delayed then a multiple of the repeat interval will be added.
The "repeat exclusion" processing has been simplified a little and also moved to immediately after calculating the embargo. This avoids creating a new message, which is not fully populated, when more than 15 dates are rejected. That processing had a bug that I think stopped the processing moving beyond two dates. In this line