ericabouaf/aws-swf

New polling request created on every new wf execution

Opened this issue · 1 comments

we are experiencing a behaviour in our decider (and activity) worker where a new pollForDecisionTask connection is created (identified from aws client logging) every time a new workflow instance is created.

When the worker is first deployed we see log like the following every 60 seconds (default long polling period)

[AWS swf 200 60.289s 0 retries] pollForDecisionTask({ domain: 'dev',
  taskList: { name: '...' },
  identity: '...',
  maximumPageSize: 100,
  reverseOrder: false })

after we start a new workflow execution, and the decider go through its logic and activities then we start seeing another log for pollForDecisionTask.

Is that the expected behaviour ? or is there some kind of clean up we need to do when the execution is suppose to be terminated ?

we have been fighting this issue for a while now, as the time goes the response time for task.response.respondCompleted become very very slow (5 mins +).

seem like this might have fixed that problem, doing some more testing now.
#49