cycle
cycle
CDCloudflare Developers
Created by cycle on 10/1/2024 in #workers-help
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: 1. Script execution time: 65 seconds 2. Desired frequency: Every 2 minutes 3. Script overview: - Makes multiple API calls - Processes and compares data - Writes results to a file I've reviewed the Cloudflare Workers documentation, but I'm unsure if my use case fits within the platform's limits. My main concerns are: - The 30-second CPU time limit mentioned for sub-hourly schedules - The overall 15-minute duration limit for Cron Triggers Key questions: 1. Can Cloudflare Workers Cron Triggers reliably support my script running every 2 minutes? 2. If possible, are there any adjustments I need to make to my script to fit within Workers' constraints?
11 replies