3 ms·
Step Functions is a massive improvement over SWF. As the author said, there are major differences and areas for improvement. Lifecycle management of state mac
by cle 10y ago
Step Functions is a massive improvement over SWF. As the author said, there are major differences and areas for improvement. Lifecycle management of state machines is pretty poor, especially considering that deleting state machines is hit-or-miss. You'll need to version your state machines yourself--which is still less painful than SWF versioning. Also, because there are no "domains" as in SWF, development can be more of a pain. The last SWF feature that would let me drop SWF completely would be signaling ("sleeping" a workflow until an event occurs).
- 2_listerine_pls 10y agoI have been awaiting for the wait-for-signal feature too.
- nyxie 10y agoI've worked around this with Lambda tasks that write a result to a presigned S3 URL and a wait loop that polls it (like CloudFormation custom resources do) but it would be nice if this was built-in.
- 2_listerine_pls 10y agohttp://i.imgur.com/A5QnFkO.png http://i.imgur.com/A5QnFkO.png
- nyxie 10y agoSorry, that's what I meant.
- 2_listerine_pls 10y agoHave you tried to handle it as an error and retry? Retry": [ { "ErrorEquals": ["S3resourceNotFound"], "IntervalSeconds": 1, "MaxAttempts": 2, "BackoffRate": 2.0 }, "ErrorEquals": ["OtherErrorName"], "IntervalSeconds": 1, "MaxAttempts": 2, "BackoffRate": 2.0 }] Simpler.
- nyxie 10y agoI couldn't figure out how to return a named error from a python2.7 Lambda function; as far as I could tell it would always return UnhandledError. How'd you do it?
- forrestbrazeal 10y agoI don't think you can set custom error names from a Lambda function: "Important Custom Error Names, like those shown above ("ErrorA", "ErrorB", etc.) can be generated by an Activity, but not Lambda Functions. (See "FunctionError" field in the Lambda Response Syntax for more information"[0] [0] https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html https://docs.aws.amazon.com/step-functions/latest/dg/concept...
- 2_listerine_pls 10y agoYeah, I was wrong. Just read the AWS Step Functions Developer Guide (1.0) and it's not currently possible to generate custom named errors from a Task. Only possible from Activities.
- striglia 10y agoIs it possible to accept an activity task with no timeout, store the state in a DB, then when your event occurs, load state from the DB and send the task_success signal? Not convenient, but seems feasible..