|
|
|
|
|
by Cieplak
2925 days ago
|
|
This is definitely a needed service. As a business, if something isn't core to the business model, it's better to pay money and avoid distractions, at least until it's clear that something is actually core to the business. That said, I've wanted something akin to a distributed cron, without the complexities of workflow engines like airflow or azkaban, so I started writing a little HTTP API for scheduling jobs [1], which is mostly complete except for configurable retry logic and failure notifications. To schedule a periodic job that runs every 30 seconds, curl http://$HOSTNAME/jobs \
-d '{ "title" : "Healthcheck"
, "code" : "curl example.com"
, "frequency" : "30 seconds" }'
[1] https://github.com/finix-payments/jobs |
|
[1] https://www.npmjs.com/package/%40dosy%2Fpocketwatch [2] https://news.ycombinator.com/item?id=17353486