Sam Hulick
01/24/2022, 3:22 AMsfn.StartExecution
would do absolutely nothing? not even throw an error?
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
🤦♂️thdxr
01/24/2022, 3:22 AMSam Hulick
01/24/2022, 3:23 AMSam Hulick
01/24/2022, 3:23 AMfor (const message of event.Records) {
const payload: ImportPayload = JSON.parse(message.body);
console.log('Processing payload:', JSON.stringify(payload));
processFile({ ...payload, audioImport: true });
}
Sam Hulick
01/24/2022, 3:23 AMSam Hulick
01/24/2022, 3:23 AMSam Hulick
01/24/2022, 3:42 AMthdxr
01/24/2022, 3:44 AMSean Matheson
01/24/2022, 12:14 PM