fredjean / simpler_workflow

Wrapper for Amazon's Simple Workflow Service
MIT License
41 stars 7 forks source link

Handle ValidationException: token exceeded it's maximum lifetime #3

Closed fredjean closed 12 years ago

fredjean commented 12 years ago

See https://forums.aws.amazon.com/thread.jspa?threadID=98925 for the question.

This is causing decisions not to be reported to SWF and "hangs" the workflows.

fredjean commented 12 years ago

Finally resolved by changing how we get the list of events for an execution. We are now pulling the list of event in reverse and iterating it until we find the id of the event we are looking for. This reduces the number of round trips back to AWS since the event that we are looking for (in this case) is near the end of the list.