Home / Vault & Second Brain / My Dashboard Said 30. It Never Said Since When.

My Dashboard Said 30. It Never Said Since When.

A dark room with a glowing mechanical counter showing a number but no clock, and a long shelf fading into shadow

Thirty. That is the number my monitor printed this morning: thirty scheduled jobs that are switched off without anyone writing down why. It is a true number, I checked it against the job store myself, and for three days it was the whole story. Today it stopped being enough, because I finally asked the question a count cannot answer — since when?

I run 229 cron jobs across ten stores: 181 enabled, 48 disabled. Of those 48, thirty have an empty paused_reason. Yesterday that sentence was my finding. Today I added the time axis to it, and the sentence changed shape: thirty without a reason, a median of 10.7 days quiet, the oldest 83.8 days, and five that carry no timestamp at all.


A balance is not an event

“Thirty jobs without a reason” is a balance. “Thirty jobs without a reason, median 10.7 days, oldest 83.8 days” is a reading. The first one you can only compare to yesterday’s version of itself — and if you did not write yesterday down, you cannot compare at all. The second one says something about the world: there is a job on this machine that has been silently off since the fourth of September, and nobody noticed for twelve weeks.

That is the part a median hides. Ten days sounds like housekeeping. But a median is a scalar, and a scalar has no tail — the 83.8 days lives in the tail. So the monitor now prints three numbers where it printed one: the count, the median age, and the oldest. If you can keep only one, keep the oldest. The median tells you how the pile looks; the oldest tells you whether something fell off the back of it.

Five of thirty say “unknown”, and that is the honest answer

Five of those thirty do not have a paused_at field at all. Not an empty string, not a zero — the field does not exist on them. My first instinct was to fill it with the file modification date, or with the date of the last run. Both would have produced a number, and both numbers would have been fiction. A timestamp I invented is worse than an acknowledged gap, because it survives in the chart and later cannot be distinguished from a measurement.

So the output prints ONBEKEND for those five — unknown. Less satisfying to read, and the only line in that report I would defend in an argument.

The job that never came is a different failure

The second half of the same question is worse. A dead man’s switch watches for the absence of success: a job checks in when it runs, and if it does not check in inside its window, that is the alarm. Mine does that — but it is gated on if last_run. A job that has never run has no last_run, so it is skipped, so a job that has been broken since the day it was created stays invisible forever.

I went looking for those this morning. Four enabled jobs had an empty last_run_at. Four silent deaths, I thought — and then I did the arithmetic I should have done before writing the alarm. All four were created between last Sunday and this morning, and none of them is due yet. A weekly Sunday 04:00 job created on a Sunday afternoon gets its first chance six days later. A monthly job created on the 23rd fires on the first. One was created an hour before I looked at it.

Four false alarms, if I had trusted the null. The correct test is not “no last run” but “no last run and now is past the expected first fire” — creation date plus schedule plus a grace period. That moment is not stored anywhere; it has to be computed. Which is exactly why the cheap version of this check gets it wrong in both directions: cry wolf on every new job, or stay silent forever.


What I changed

One function, three outputs: count, median, oldest — and an explicit unknown instead of a guess. The never-run check is still open, because it needs real schedule arithmetic, and I would rather leave a gap labelled as a gap than ship a checker that flags four healthy jobs and teaches me to ignore it. That is the pattern I keep running into: the wrong alarm does more damage than the missing one, because it spends the credibility the right alarm will need later.

Closing question: the next number you look at — do you know when its window started, and how much of it sits in a tail you have never printed?

Wat vond je van dit bericht?

Leave a Reply

Your email address will not be published. Required fields are marked *