ok, I feel like I’m losing my mind :neutral_face: ...
# random
s
ok, I feel like I’m losing my mind 😐 does anyone know why a call to
sfn.StartExecution
would do absolutely nothing? not even throw an error?
Copy code
try {
        console.log('Starting execution:', JSON.stringify(startExecParams));
        const res = await sfn.send(new StartExecutionCommand(startExecParams));
        console.log('execution result:', JSON.stringify(res));
      } catch (e) {
        console.error('y tho?', e);
      }
one Lambda function calls the function that performs the above code, and it works with no problem. but another Lambda calls the same function and I see “Starting execution” in CloudWatch Logs and that’s it. no error, no “execution result”. I don’t get it. EDIT: forgot an
await
🤦‍♂️
t
Is the function async?
s
oh hell.
Copy code
for (const message of event.Records) {
      const payload: ImportPayload = JSON.parse(message.body);
      console.log('Processing payload:', JSON.stringify(payload));
      processFile({ ...payload, audioImport: true });
    }
thank you 😅
a sure sign I’ve been working too long today 😄
it tripped me up because it worked locally but not in prod
t
yeah that's a classic situation