amazon-swf

Solutions to fix stuck timers / activities in Cadence/SWF/StepFunctions

♀尐吖头ヾ 提交于 2020-12-13 04:54:34
问题 So timers are durable in workflow engines like Cadence, SWF and Step functions. Durable timer is useful for use cases that need to wait for a long period of time, then wake up to execute some business logic. Because of the durability, it’s resilient to various failures, making the programming experience and model much better for developers. But what if you want to change a timer after it has started? Like this example: @Override public void sampleWorkflowWithTimer(Input input){ //... //some

Open Source Equivalent of AWS Flow Framework [closed]

﹥>﹥吖頭↗ 提交于 2020-01-01 11:20:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . There many workflow system out there but I was wondering which one of the open source workflow management system is the closest to the AWS Flow Framework (with Amazon SWF like capability build in)? 回答1: AWS Flow Framework itself is open source under Apache 2.0 license. Its

AWS SWF Decider 'java.net.SocketTimeoutException: Read timed out' when polling

微笑、不失礼 提交于 2019-12-25 04:12:16
问题 I'm encountering this error whenever my SWF Worker application polls. If there's an entry in the SWF queue, it gets processed properly. But if it's empty, this timeout exception is returned. com.amazonaws.http.AmazonHttpClient : Unable to execute HTTP request: Read timed out java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.8.0_31] at java.net.SocketInputStream.read(SocketInputStream.java:150) ~[na:1.8.0_31] at java.net

How to convert Linux cron jobs to “the Amazon way”?

瘦欲@ 提交于 2019-12-20 07:58:15
问题 For better or worse, we have migrated our whole LAMP web application from dedicated machines to the cloud (Amazon EC2 machines). It's going great so far but the way we do crons is sub-optimal. I have a Amazon-specific question about how to best manage cron jobs in the cloud using "the Amazon way". The problem : We have multiple webservers, and need to run crons for batch jobs such as creating RSS feeds, triggering emails, many different things actually. BUT the cron jobs need to only run on

Executing Workflow using AWS SWF Cron

会有一股神秘感。 提交于 2019-12-13 06:53:52
问题 I want to execute my workflow at a specified time daily(say at 10 am JST) using AWS SWF cron. In the sample program in AWS SDK I find that activities can be scheduled using SWF cron. But how to schedule a workflow using AWS SWF cron. I am very much new to this SWF cron. Any suggestion is highly appreciated Activities Class: public class SampleActivitiesImpl implements SampleActivities{ @Override public Integer testAct1() { System.out.println("Activity 1 ---->Start"); return 1; } @Override

Shutdown activity worker and workflow

限于喜欢 提交于 2019-12-11 07:44:49
问题 Is there any way to shutdown activity and workflow worker after all the activities in my workflow implementation have completed its execution or if any of them throws any exception. 回答1: You can have special "shutdown worker" activity type. This activity implementation initiates shutdown of its worker. At the end of the workflow execution you always invoke this activity from doFinally method of TryCatchFinally that wraps all other workflow logic. 来源: https://stackoverflow.com/questions

Triggering a SWF Workflow based on SQS messages

穿精又带淫゛_ 提交于 2019-12-09 18:29:40
问题 Preamble: I'm trying to put together a proposal for what I assume to be a very common use-case, and I'd like to use Amazon's SWF and SQS to accomplish my goals. There may be other services that will better match what I'm trying to do, so if you have suggestions please feel free to throw them out. Problem: The need at its most basic is for a client (mobile device, web server, etc.) to post a message that will be processed asynchronously without a response to the client - very basic. The

DecisionTaskTimedOut when @Asynchronous annotation is used

血红的双手。 提交于 2019-12-08 10:37:21
问题 I have some two sets of activity that needs to be executed in parallel. After their successful completion, I want to execute another set of activity. I used Task and it was working. But, after using the @Asynchronous annotation, I am getting the DecisionTaskTimedOut and none of the activity starts its execution. My aspectj configuration is working as i can see the following classes in my target: AsyncWorkflowImpl$AjcClosure1.class AsyncWorkflowImpl$AjcClosure3.class AsyncWorkflowImpl

Amazon AWS Simple Workflow Service SWF PHP Samples

橙三吉。 提交于 2019-12-07 04:01:27
问题 I was wondering if there are any SWF workflow PHP sample code available for the AWS PHPSDK 2+ ? 回答1: I looked for a tutorial and wasn't able to find one. Eventually, I went through the docs and examples using Ruby and the web API and pieced together the nuts and bolts of working with the PHP SDK. The first thing you need to do is register your domain, workflow, and activities. This can be done either through the AWS console or using the PHP SDK. Using the SDK, use the following: <?php require

Amazon AWS Simple Workflow Service SWF PHP Samples

旧街凉风 提交于 2019-12-05 08:23:15
I was wondering if there are any SWF workflow PHP sample code available for the AWS PHPSDK 2+ ? Lloyd Banks I looked for a tutorial and wasn't able to find one. Eventually, I went through the docs and examples using Ruby and the web API and pieced together the nuts and bolts of working with the PHP SDK. The first thing you need to do is register your domain, workflow, and activities. This can be done either through the AWS console or using the PHP SDK. Using the SDK, use the following: <?php require_once "path/to/aws.phar"; use Aws\Swf\SwfClient; // Create an instance of the SWF class $client