Cron Job Frequency question
I'm looking to repeatedly run a function that queries my gps api to get coordinate data and use that data to update convex records to create a realtime gps tracking application.
I read that the convex cron job frequency is only 1 minute. Would it be viable to create a recursive schedule that will keep running a new job every 5-10 seconds for this to continuously update the records? Or is there a better way to do this?
I'm new to working with scheduled tasks/cron jobs, apologies if this is a super basic question.
3 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
I read that the convex cron job frequency is only 1 minute.Not sure where you read that, but there are numerous options for Convex cron job scheduling.
Cron Jobs | Convex Developer Hub
Schedule recurring functions in Convex
awesome thanks, i think i misread something somewhere. i thought i could only run a cron job every minute not every 5 seconds. this is perfect