admin管理员组

文章数量:1201580

I'm facing a timeout issue with a Cron function that runs hourly to fetch data from a third-party API. Although the API successfully retrieves the data each hour, the Cron function consistently encounters a timeout error during every invocation.

I'm facing a timeout issue with a Cron function that runs hourly to fetch data from a third-party API. Although the API successfully retrieves the data each hour, the Cron function consistently encounters a timeout error during every invocation.

Share Improve this question asked Jan 21 at 18:44 johnwickjohnwick 605 bronze badges 1
  • can you provide more info and your config – Sai Shanmukkha Surapaneni Commented Jan 21 at 18:56
Add a comment  | 

1 Answer 1

Reset to default 0

The "timeout error" issue might occur if the context is not closed with the status after invoking the third-party API in the application code.

To avoid this, ensure the Cron function is closed with either context.closeWithSuccess() or context.closeWithFailure() at the end of the function to indicate whether the Cron function executed successfully or not. You can refer to this help documentation for Cron function.

本文标签: serverlessCatalyst Cron function timeoutStack Overflow