top | item 28211062

Ask HN: What tech to run and monitor CRON jobs (Python, Node.js, C#)?

10 points| jorislacance | 4 years ago | reply

22 comments

order
[+] LikeAnElephant|4 years ago|reply
Regarding monitoring: I've come to rely on healthchecks.io to ensure my cron jobs when like I expect.
[+] XCSme|4 years ago|reply
I use the same service and I think it works, no CRON job failed yet though.
[+] jorislacance|4 years ago|reply
Monitoring solved, how do you deal with the CICD/delivery of your CRON code then?
[+] chudi|4 years ago|reply
Rundeck is a pretty good tool to schedule, save logs and the like.

At my work we have a rundeck server connect via ssh to differents vm and execute the script there, you can configure alarms, parallel execution, plenty of steps it's pretty good you should try it out.

[+] jorislacance|4 years ago|reply
I didn't know this one, I'll take a look at it, thanks!
[+] vyrotek|4 years ago|reply
How long of a job do you need to run?

We use Azure Timer Functions and/or Logic Apps to run and monitor our jobs. All of those languages are supported.

[+] jorislacance|4 years ago|reply
From 5 minutes to 24h mainly.

Some jobs have crazy deps, like puppeteer or selenium, I wonder if you can setup complex environment dependencies with FaaS (docker base image maybe?)

[+] aprdm|4 years ago|reply
Jenkins can work quite well for this. It keeps logs, success/failure, has hooks for multiple notifications and etc.
[+] jorislacance|4 years ago|reply
that's sadly what we do nowadays, but this is quite an hack somehow; there are hard limits in the monitoring features, not a lot of overview analytics viz too.

Our core issue is that it is a too much tech software, we would like to have PM/PO looking at the health status of things. We could build a dashboard about jobs status elsewhere for sure. But we are hoping to find a better tech to deliver, run and monitor jobs, all in one.

[+] recov|4 years ago|reply
A little overkill, but airflow. Free, has history, language agnostic, retries, can handle a large number of time based tasks.
[+] rozenmd|4 years ago|reply
There are SaaSes for this, like https://cronhub.io
[+] jorislacance|4 years ago|reply
We are considering. but it makes us migrate all 'stupid' jobs into API that can be triggered from cronhub.io.
[+] rahimnathwani|4 years ago|reply
crontab to run them

dogwrap (command-line tool for datadog) to monitor them

[+] jorislacance|4 years ago|reply
interested about dogwrap, seems very generic for a various cases.

How do you deal with the CICD/delivery of your CRON code then using crontab?