
If i want function to schedule for 30seconds, how can i do that??
if i try this 0/30 * * * * *
then it give this error:
TypeScript
Invalid `schedule` param: String must be a valid cron expression
TL;DR
Developers are trying to schedule a function to run every 30 seconds using a cron expression but are facing an error. The correct format for scheduling a function in seconds is not possible with traditional cron syntax, as it works on minute-level granularity. An alternative solution would be to run a loop inside the function with a sleep timer set to 30 seconds.
You can't

Got it.

Scheduling function in seconds [solved]
Recommended threads
- Email OTP Mail Getting Delayed by 10 min...
I just noticed I am reciving delayed otp emails on frankfurt server we are on free plan now but we are planning to change to get on to paid plan can anyone plea...
- schedule functions not working
starting from 15:02 utc time my schedule function stops working. I was able to execute it using the GUI. The schedule is every 5 minutes and I can see a clock i...
- Getting permission denied error while de...
My `package.json` build script is `tsc` and function's commands are `npm install && npm run build`. Here are the deployment logs: ``` 2025-06-19T15:14:36.849527...
