Scheduled Worker failes with too many request

I have one corn job which is doing a scheduled check of API health. The job runs every 15 mins but gets error. The API call is in 100 ms and only one call in 15 mins. I have paid plan.

{
“outcome”: “exception”,
“scriptName”: “blazorly-backend-apim”,
“exceptions”: [
{
“name”: “Error”,
“message”: “Too many API requests by single worker invocation.”,
“timestamp”: 1672893188234
}
],
“logs”: [
{
“message”: [
“[object Object]”
],
“level”: “log”,
“timestamp”: 1672893048408
}
],
“eventTimestamp”: 1672893048408,
“event”: {
“cron”: “*/15 * * * *”,
“scheduledTime”: 1672893042000
},
“id”: 0
}

2 Likes

Please note that internal subrequests to other Cloudflare services (e.g. to R2) also account for the overall subrequests limits. If you exceed that limit, you will also get the error message “Too many API requests by single worker invocation.”