Ask HN: What job scheduler do you use?
Now I'm working for another company, we have the same need:
- Orchestrate hundreds of jobs
- Some need to start as soon as their dependencies are ready
- Others need to start according to timezone-based (and possibly dependencies)
- Notification on failures
- Make jobs fail if their dependencies are not ok after a given time
- Force a job status (i.e. set it "ok" even if it failed)
- Reasonable access control
- And if possible a nice dashboard!
While these requirements seem standard to me, I cannot find any acceptable solution:
- Cron is cool for the simplest things, nothing more
- Rundeck is nice for simple workflows, but not for complex dependencies
- I'm tinkering with SOS-Berlin Job Scheduler for days now, and I cannot find proper ways to orchestrate my dependencies
- Control-M looks over priced and certainly not deployable without months of project planing and contract negotiation
- Luidgi and Airflow are too much focused on data workflows, not on generic job scheduling
What are you using? :)
- https://github.com/cronboy/cronboy
- https://cronboy.com/
It doesn't fit needs of @pmchorus company, but is useful for simpler cases when you need something more efficient than cron and more accurate than queue delayed jobs. (Example: we use it for sending triggered email deliveries, where batch processing of letters using cron is not possible, because of amount of letters and cron schedule limit)
The idea is that you schedule job on specified time and cronboy invokes it via http and execute it on your server.
Features:
- Seconds accuracy of execution
- Statistics on invoked jobs
- Secure execution of your code
- Retrying if job failed
- Laravel friendly facade api
What I really appreciate about Airflow is that it is self documenting. Anyone can logon and see the exact workflow, schedule of that workflow, the status of last few job runs and the python code that ran if they desire. Airflow documentation itself is good and getting better.
It can run a simple cron job but it also gives you room to build it out into much more. We use our Airflow scheduler to call simple API endpoints and then that same server does daily loads into our data warehouse.
Also 1.8 just dropped to stable and it is a huge improvement upon earlier versions.
https://github.com/spotify/styx