Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
SWF Poll API and Tutorial #2063
All of the code examples in the SWF tutorial
have the pattern only the latest ActivityTaskCompleted event is considered. This led me to make an incorrect assumption:
In fact the following is true:
As a result, this incorrect assumption leads to race conditions which are difficult to spot.
I had to discover this by reading printouts the entire poll structure and then comparing it with AWS's documentation of poll structure.
It would be quite useful if the tutorial linked to the AWS SWF API reference. It would also be very useful if the tutorial included an example of explicitly processing multiple new events which occur from a single poll.