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

New polling request created on every new wf execution

Open ericln opened this issue 7 years ago • 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 +).

ericln avatar Mar 03 '17 16:03 ericln

seem like this might have fixed that problem, doing some more testing now. https://github.com/neyric/aws-swf/pull/49

ericln avatar Mar 04 '17 01:03 ericln