Trigger cron from another service
scarabcoder
PROOP

2 years ago

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

scarabcoder
PROOP

2 years ago

N/A


scarabcoder
PROOP

2 years ago

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


2 years ago

i think this would be a better for an in code cron job of some kind


scarabcoder
PROOP

2 years ago

Gotcha, thank you!


Loading...