SBarnes wrote:What are the different statuses for web hook messages and what to they mean?
// 0 = not sent, never been tried
// 1 = successfully sent already
// 2 = failed to send, retry pending
// 3 = failed permanently
SBarnes wrote:For a client we are somehow ending up with messages with status 1 in in web hook messages that seem to remain there and I believe it is because of
- Code: Select all
if (message.Status == 1)
return;
1 means it's been sent, so it should stay at 1. The message.Status == 1 check is an attempt to prevent a message being sent multiple times. We've re-jigged things a bit in the next release to make that more reliable, as we found short retry intervals could still cause them to be sent more than once.