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?
4 Replies
Project ID:
N/A
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
i think this would be a better for an in code cron job of some kind
Gotcha, thank you!