[英]SWF Maximum workflow execution time limitation
Amazon SWF has a limit of Maximum workflow execution time of one year. Amazon SWF的最大工作流执行时间限制为一年。 Here: http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html 此处: 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. 在对此问题进行了大量调查之后,似乎唯一可行的解决方案是Amazon食谱本身提供的解决方案,它是continue-as-new
工作流程并将工作流程的状态转移到新执行中。
This workaround might not be easy to deploy for more complex workflows. 对于更复杂的工作流程,此解决方法可能不容易部署。
Here is SWF Ruby sample: 这是SWF Ruby示例:
https://github.com/awslabs/aws-flow-ruby-samples/tree/master/samples/periodic https://github.com/awslabs/aws-flow-ruby-samples/tree/master/samples/periodic
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.