N
Novu•3y ago
nevodavid

Failing to understand why I need to insert two intervals in the digest back-off strategy.

It's supposed to restart the digest every time there is a new event in a period of time. I read the documentation a few times and still can't understand. What's the first interval for? What's the second interval for?
12 Replies
DavidSouthmountain
DavidSouthmountain•3y ago
the second interval tells us how long we should check if there was a previous event inside if there was we will start a digest that will collecting during the first time interval you have choosen 🙂
nevodavid
nevodavidOP•3y ago
Ok let's say I put in the first interval of 30 minutes. then I have 4 events, each firing in a 10 minutes delay. How many events will be in the digest
DavidSouthmountain
DavidSouthmountain•3y ago
it depends on how much time you set in the second one
nevodavid
nevodavidOP•3y ago
30 minutes
DavidSouthmountain
DavidSouthmountain•3y ago
3 events will be digested, because first will not find anything 30 minutes back, second one will and check 30 min into the future and find 2 more events inside of the digest interval
nevodavid
nevodavidOP•3y ago
If I want to that digest will never stop in an interval of 30 minutes. Should I put like a huge number on the second input?
DavidSouthmountain
DavidSouthmountain•3y ago
what do you mean? we always check if there is an active digest and do not create a new one if there is one
nevodavid
nevodavidOP•3y ago
I have a 30 minutes window, every time there is a new event, I want another 30 minutes window
DavidSouthmountain
DavidSouthmountain•3y ago
we do not have support for that right now, if I understand your needs correctly
Pawan Jain
Pawan Jain•3y ago
@nevodavid Can you please create a feature request for this?
nevodavid
nevodavidOP•3y ago
For the digest I wanted?
Pawan Jain
Pawan Jain•3y ago
yes
Want results from more Discord servers?
Add your server