0

I've been working on a Lambda function but the test for it is failing because it is no longer executing sequentially-but was yesterday.

Is there any way to enforce sequential execution?

2
  • Lambda is fundamentally stateless and parallel. If you need to process things sequentially, each to completion before the next starts, then consider a FIFO SQS queue or Step Functions. Commented Sep 6, 2018 at 11:29
  • Giving a bit more detail may help answer your question, e.g. what language are you using, maybe post some or all of your code (removing anything sensitive like keys) Commented Sep 7, 2018 at 10:38

1 Answer 1

1

Just had to use Javascript promises to get it to run the functions in the order I want. Don't know why it only started being a problem part way through.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.