Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

89
Views
Immediate functions not running

I have 3 immediate functions declared inside the handler function of an AWS Lambda:

exports.handler = async (event, context, callback) => { 
    (async doFirstStep => {
        console.log("First Step")
    })

    (async doSecondStep => {
        console.log("Second Step")
    })

    (async doThirdStep => {
        console.log("Third Step")
    })
}

When I run the test, the output is as follows:

// INFO First Step

If I change the order of the functions and put the doSecondStep before the doFirstStep then the output is:

// INFO Second Step

The problem is that only one function is executed, any hint on why the other functions are not working as they should be?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!