aws-swf icon indicating copy to clipboard operation
aws-swf copied to clipboard

Poller stops polling after long idle

Open saverchenkov opened this issue 10 years ago • 2 comments

I noticed that after long idle of a few hours, both activity worker and decider stop processing requests. The requests are submitted to SWF, but they aren't processed. I was able to reproduce this repeatedly. No errors occur on the client, just nothing is being processed.

saverchenkov avatar Mar 07 '14 16:03 saverchenkov

Did you get a reply/found a solution for above question? I am also facing this problem but haven't found a solution as yet. Thanks.

vguptapq avatar Sep 15 '14 15:09 vguptapq

hmm... maybe missing an error signal during the "pollForActivityTask" call ?

If an error occurs during the call, the poller emits a "error" event, but will stop polling. https://github.com/neyric/aws-swf/blob/master/lib/poller.js#L103

Maybe you could try to log the error, and re-poll anyway ?

ericabouaf avatar Sep 15 '14 20:09 ericabouaf