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

How do I get the result of a retry-able activity using the AWS Flow Framework for Ruby?

I have the following SWF Workflow which asynchronously calls 2 activities, gets their results, and passes that to the third activity: a_future = Future.new.set b_future = Future.new.set a_future = activity.send_async(:a_activity, arg1) b_future =…
Peter Sankauskas
  • 2,882
  • 4
  • 27
  • 28
2
votes
2 answers

AWS SWF Closure events not being send to decider

I'm using the AWS PHP library. My problem is that my decider never gets any of the closure events. When calling "pollForDecisionTask", I never receive any of these completion…
Daniel
  • 1,531
  • 13
  • 16
2
votes
2 answers

Scheduled tasks using AWS

I currently have a Windows instance on AWS which runs a windows scheduled task to execute a .net script to process the days orders. I have recently load balanced a few instances using ELB and this is all fine. The question is how do I setup the…
Raj
  • 897
  • 1
  • 15
  • 28
2
votes
1 answer

AWS SWF Signal during vs Decision after Timer best practice?

I have a set of business processes that I think are a good fit for AWS SWF. Several of these processes include wait periods, that could be anything from a week to 3 months. A (brief and not fully explained) example might be along the lines of "If a…
2
votes
1 answer

Using workflowId to ensure uniqueness of workflow

We're moving over to Amazon Simple Workflow Service from various cron-based processes. A lot of these won't need to run at certain times any more, and would just be triggered when needed. However, for certain workflows, we need to guarantee that the…
Michal Charemza
  • 25,940
  • 14
  • 98
  • 165
2
votes
1 answer

How to access AWS::Flow::ActivityWorker from a rails rake task

I am attempting to use the Simple Workflow service to manage jobs for a rails application. I am basing my work off the booking example from the documentation. The rake task looks like: require "#{Rails.root}/app/helpers/application_helper" include…
dysbulic
  • 3,005
  • 2
  • 28
  • 48
2
votes
1 answer

How to check if a domain already exists in SWF

Is there a way to check if a domain name exists in SWF, instead of iterating the entire domain list?
Sam
  • 8,387
  • 19
  • 62
  • 97
1
vote
1 answer

Why does the decider get invoked multiple times

While trying to run the booking sample, the decider gets invoked 4 times (i.e. the makeBooking method), but only a single call gets sent to the activity task exposed by ActivityHost.java. Can someone explain what is happening here?
priya
  • 24,861
  • 26
  • 62
  • 81
1
vote
1 answer

AWS Simple Workflow Policy

The policy on the SWF documentation doesn't seem to work. Has anyone else got the following to work? { "Version":"2008-10-17", "Statement":[{ "Effect":"Allow", "Action":["swf:*" ], "Resource":["*" ] } ] }
DeejUK
  • 12,891
  • 19
  • 89
  • 169
1
vote
1 answer

How can we fail an SWF workflow execution within AWS Flow Workflow code

We have a flow where if some actions are not done by a certain time period, we want to fail the workflow, to use alarming mechanisms. For failing the workflow, I was initially thinking of just returning an exception from the code. But after reading…
voldegaur
  • 194
  • 2
  • 12
1
vote
2 answers

AWS SWF - activities client generation not working (Maven, IntelliJ)

I'm working through the SWF tutorial right now and trying to get GreeterActivitiesClient in GreeterWorkFlowImpl. I'm getting "Cannot resolve symbol" error for the Client and the ClientImpl. Per the AWS materials, I thought these would be generated…
ajjabajja
  • 19
  • 2
1
vote
1 answer

how to have multiple SWF domain share the same workflow decider and activity code

We have a use case in SWF, where we want to segregate SWF workflow executions in different domains per calling clients. We want to reuse the workflow decider code and activity code across all domains without making duplicates. Has anyone tried this…
voldegaur
  • 194
  • 2
  • 12
1
vote
1 answer

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

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…
1
vote
0 answers

Why does Amazon SWF Workflow not cancel immediately after calling TryCatch.cancel()?

I am using the below code sample where I am calling the cancelWF method to cancel the execution of workflow. The onCatch method is successfully invoked with the RuntimeException("Simply cancel"), but on the Amazon SWF console the WF does not end…
vikkyhacks
  • 3,190
  • 9
  • 32
  • 47
1
vote
2 answers

AWS SWF Have Activity Wait Until A Specific S3 File Exists

I have a SWF workflow that has two activities. The first activity (A1) simply calls a service API that in turn launches an application that will (eventually) upload a file in a specific S3 bucket. The second activity (A2) downloads this file and…
Pomacanthidae
  • 207
  • 1
  • 3
  • 8