Lambda function partially executing

Hello,

I have a lambda function that is called from a scheduled function every 30 minutes and I can confirm through logging that the lambda is being called every 30 minutes. This function polls a supabase database table and fetches any emails that need to be sent, and passes the data to the Resend api (https://api.resend.com/emails) to send the email.

The function works correctly on my local dev environment, however when deployed to netlify, the function simply “stops” executing after fetching from the database. I can confirm that the function is successfully fetching the data from the database. After it fetches the database data, it is supposed to call the Resend api, however, nothing happens and there are no errors or logging messages. I’ve wrapped the code that is not executing in a try… catch block but no errors are being thrown. I’ve checked the Resend logs and can confirm that the api is not being hit. The netlify function logging shows the data being fetched from the database, and a last log message that the function has finished, but nothing else in between.

Thanks! Any help would be greatly appreciated.

Could you share a minimal reproduction?