Open dayyan opened 7 years ago
Polling from AWS takes about 60 secs IIRC. This might be each worker polling?
JFlow.configuration.swf_client.poll_for_activity_task(poll_params)
This should block for 60sec
I think the [4972] above is the same worker, is it? https://github.com/djpate/jflow/blob/master/lib/jflow/activity/worker.rb#L61
Looks like the polling mechanism polls like crazy.
The worker should allow a wait period to be specified, with a default. I'm guessing it would be a good idea to introduce that somewhere here: https://github.com/djpate/jflow/blob/master/lib/jflow/activity/worker.rb#L25-L52