Questions tagged [amazon-swf]

Amazon Simple Workflow Service (Amazon SWF) is a workflow service for building scalable, resilient applications. Whether automating business processes for finance or insurance applications, building sophisticated data analytics applications, or managing cloud infrastructure services, Amazon SWF reliably coordinates all of the processing steps within an application.

Amazon Simple Workflow Service (Amazon SWF) is a web service that makes it easy to coordinate work across distributed application components. Amazon SWF enables applications for a range of use cases, including media processing, web application back-ends, business process workflows, and analytics pipelines, to be designed as a coordination of tasks. Tasks represent invocations of various processing steps in an application which can be performed by executable code, web service calls, human actions, and scripts.

The coordination of tasks involves managing execution dependencies, scheduling, and concurrency in accordance with the logical flow of the application. With Amazon SWF, developers get full control over implementing processing steps and coordinating the tasks that drive them, without worrying about underlying complexities such as tracking their progress and keeping their state. Amazon SWF also provides the AWS Flow Framework to help developers use asynchronous programming in the development of their applications. By using Amazon SWF, developers benefit from ease of programming and have the ability to improve their applications’ resource usage, latencies, and throughputs.

264 questions
2
votes
0 answers

AWS.SWF() is not a constructor in a webpage

I'm creating a webpage that has this javascript code. let AWS = require("aws-sdk"); AWS.config.region = AWS_REGION; AWS.config.credentials = new AWS.CognitoIdentityCredentials({ IdentityPoolId: COGNITO_IDENTITY_POOL_ID }); let ddb = new…
Buddha
  • 4,339
  • 2
  • 27
  • 51
2
votes
1 answer

AWS SWF cancelling child workflows automatically

I have AWS SWF workflow which creates many child workflows at runtime based on the number of input files. For x number of input files, it will create x number of child workflows. It works fine when number of input files is around 400 and…
Bhanu
  • 23
  • 2
2
votes
3 answers

Dynamic states to be run in parallel using Step Functions

We have a use case where we need to run some steps sequentially at the beginning of a workflow followed by a bunch of tasks that need to be run in parallel. The difference though is that the number of tasks could vary for each request. For…
Vipul
  • 195
  • 1
  • 4
  • 15
2
votes
0 answers

Setting CloudWatch Alarm for SWF Workflow irrespective of version

I have a Cloudwatch alarm set for the SWF workflow for a particular version. But as soon as I change the workflow version that particular alarm becomes useless. Is there a way in cloudwatch to create an alarm on SWF workflow irrespective of the…
Prasad Pande
  • 488
  • 9
  • 24
2
votes
1 answer

SWF Junit Test OPEN_CHILDREN_LIMIT_EXCEEDED Error

I am writing a Junit Test for my simple workflow. It gives this error: com.amazonaws.services.simpleworkflow.flow.StartChildWorkflowFailedException: OPEN_CHILDREN_LIMIT_EXCEEDED for workflowExecution.... Here is a brief version of the test…
potbelly
  • 57
  • 1
  • 9
2
votes
1 answer

Amazon SWF queries

Over the last couple of years, I have done a fair amount of work on Amazon SWF, but the following points are still unclear to me and I am not able to find any straight forward answers on any forums yet. These are pretty basic requirements I suppose,…
Dev
  • 195
  • 10
2
votes
1 answer

AWS SWF child workflow can't schedule lambda task

SWF child workflows fail to schedule lambda tasks even though they are created with a role with access to lambda. Task fail with the error below. ASSUME_ROLE_FAILED
Asanka
  • 429
  • 3
  • 10
2
votes
1 answer

Activity cannot send a response with data larger than 32768 characters

I am trying to invoke a simple lambda function (the lambda function prints hello world to console) using ruby . However when I run the code and look at the swf dashboard . I see the following error : Reason: An Activity cannot send a response…
Amogh Huilgol
  • 1,252
  • 3
  • 18
  • 25
2
votes
0 answers

Troubleshooting Postgres/JPA/Spring with long running stored procedure

I'm having an issue with a couple of long running stored procedure calls that I'm calling from DAO that don't return control back to the service that called the DAO. Here's the pattern: Within a AWS SWF workflow that we'll run once per year, I…
elduff
  • 1,178
  • 3
  • 14
  • 22
2
votes
1 answer

Unit testing activities marked as @ManualActivityCompletion

I have been working on creating unit tests which run local versions of a workflow. I followed this guide for an initial setup. With that setup, I have been able to successfully execute and test a workflow. The issue arises when I attempt to unit…
Nithin
  • 9,661
  • 14
  • 44
  • 67
2
votes
2 answers

Approach to crashed workers in amazon swf

We're currently implementing a workflow in Amazon SWF where we submit jobs/workflow executions from our web application. Everything was fairly quick and painless to get set up using the Ruby Flow framework. As long as the deciders/activity workers…
tonyl7126
  • 1,548
  • 3
  • 14
  • 19
2
votes
0 answers

Is there a predefined library supporting all use cases for AWS SWF deciders

In Amazon SWF the decider has to be implemented by the developer and has to write the code to support all use cases. I need to implement a workflow architecture which can support execution of tasks in sequential, branching, parallel. Is there a…
2
votes
2 answers

Unit testing Amazon SWF child workflows

I have a parent workflow (ParentWorkflow) calling a child workflow (ChildWorkflow) and I'm trying to test out the call. The parent code looks something like this: public class ParentWorkflow { private final ChildWorkflowClientFactory…
Allan5
  • 351
  • 5
  • 17
2
votes
1 answer

AWS SWF Flow does the activity start to close timeout include activity retries?

I'm trying to configure one of my SWF activities using the Flow framework for java and I can't find any documentation about whether the StartToClose timeout is only for a single activity attempt or for all of the retry attempts for that…
Alex Q
  • 3,080
  • 2
  • 27
  • 29
2
votes
2 answers

Amazon SWF: Where to put the decider logic?

We're currently investigating the use of Amazon SWF to take care of the longer running jobs in our backend. Our architecture consists of the typical stack: client (web/android/iOS) ---- API/Worker (Elastic Beanstalk) ---- DB (RDS) I would like to…
Pepster
  • 1,996
  • 1
  • 24
  • 41
1 2
3
17 18