Dispatch with @delay firing multiple times
Posted by Dan Kereliuk on
URL: https://discuss.orbeon.com/Dispatch-with-delay-firing-multiple-times-tp3649476.html
Hi, we have a submission being fired continuously in a loop, by using xf:dispatch with a 10-second delay. ie. something like this:
<xf:dispatch name="timer" target="timergroup" ev:event="DOMActivate"/>
<xf:group id="timergroup">
<xf:action ev:event="timer">
<xf:send submission="some-submission-here"/>
<xf:dispatch name="timer" target="timergroup" delay="10000"/>
</xf:action>
</xf:group>
It seems to run fine at first, but after leaving the page open for a while we notice in our logs that the submission begins firing twice per each 10 second interval, and then eventually 3 times, and so on until it's firing so many times that it actually starts affecting performance. It seems to start doing this randomly, so it sometimes takes a while to reproduce.
We're wondering if anyone else has experienced this, or if it's something that's been fixed in the latest version (we're currently using Orbeon Forms 3.8.0.201005141856 CE)?