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
1 Answer
Reset to default 0The "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
版权声明:本文标题:serverless - Catalyst Cron function timeout - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738605340a2102311.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论