简体   繁体   中英

SWF Maximum workflow execution time limitation

Amazon SWF has a limit of Maximum workflow execution time of one year. Here: http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html

In case of workflows which need human approval it might take more than a year to complete a workflow. I tried to use different methods to find a workaround for this limitation but could find any solution for that. I was wondering if anyone have some experience on this or have any recommendation.

Thanks

After investigating a lot about this issue seems there is only possible solution for that is the one which is provided in Amazon recipes itself, which is continue-as-new workflow and carrying over state of workflow to new execution.

This workaround might not be easy to deploy for more complex workflows.

Here is SWF Ruby sample:

https://github.com/awslabs/aws-flow-ruby-samples/tree/master/samples/periodic

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM