Menu

1 / 2

How to monitor cron jobs so they don’t fail silently

DEV Community·Krasimir Petkov·6 months ago
#2MmO77R9
#python#monitoring#devops#ping#example
Reading 0:00
15s threshold

I have a few scheduled jobs that run in the background.

Some of them update data. Some clean things up. Some call external APIs. They are not very exciting, but when one of them stops running, it can create a surprisingly annoying problem.

The worst part is that you often do not notice immediately.

The job may have failed yesterday, but you only find out today because some data is missing, a report was not generated, or something looks stale.

That is the kind of failure I wanted to make more visible.

The problem

Cron jobs and scheduled scripts are easy to forget about.

They usually do not have a UI.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.