CodingXeer01
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. Steven
You can't
CodingXeer01
Got it.
CodingXeer01
Scheduling function in seconds [solved]
Recommended threads
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...