R
Railway4mo ago
Nick

Trigger cron from another service

I have a synchronization service built in a NodeJS server that boots up, executes any queued sync/imports, then ends. I have it running every minute on a cron task, and it only takes 2 seconds to boot up and close if there isn't anything to do, but I would prefer to have it trigger when I queue an import (in addition to something like a 30 minute interval) so I can have sync jobs executed sooner. Is that available through the GraphQL API? Or am I overestimating the waste cost of running a task every minute?
Solution:
i think this would be a better for an in code cron job of some kind
Jump to solution
4 Replies
Percy
Percy4mo ago
Project ID: N/A
Nick
NickOP4mo ago
N/A or does it make more sense to just keep a server active that has it's own cron type schedule, since it does look like it takes a bit over a minute to deploy the container
Solution
Brody
Brody4mo ago
i think this would be a better for an in code cron job of some kind
Nick
NickOP4mo ago
Gotcha, thank you!
Want results from more Discord servers?
Add your server