Can Cloudflare Workers Cron Support a 65-Second Script Running Every 2 Minutes?
I have a Node.js script that I need to run periodically, and I'm considering using Cloudflare Workers with Cron Triggers. Here are the details of my use case:
- Script execution time: 65 seconds
- Desired frequency: Every 2 minutes
- Script overview:
- Makes multiple API calls
- Processes and compares data
- Writes results to a file
- The 30-second CPU time limit mentioned for sub-hourly schedules
- The overall 15-minute duration limit for Cron Triggers
- Can Cloudflare Workers Cron Triggers reliably support my script running every 2 minutes?
- If possible, are there any adjustments I need to make to my script to fit within Workers' constraints?