All posts
Engineering

When a board lists half its jobs

A short list looks exactly like a hiring freeze: every row it returns is perfect. Why that is the hardest failure in job data, and what it means for a mirror.

HyperJobs Team5 min read

Most data failures leave a mark on the data. A field goes null, a date stops parsing, a salary arrives in cents. You can watch for those: count the nulls, alarm when the rate moves.

This one leaves no mark at all. A board that used to list 400 jobs starts listing 200. The 200 it returns are complete, correctly parsed, and live. Every field-level check passes, because every field is fine. The only evidence is what isn't there, and what isn't there is exactly what expiry reads as closed.

Expiry is a diff

Nobody tells anyone a job is closed. Boards are re-read, and a posting that was listed before and isn't now is a candidate for closing. Once that's confirmed, it closes: it's deleted from the catalogue, /v1/jobs/{id} answers 404, and a tombstone with reason: "expired" lands on /v1/jobs/expired.

Confirming first is there for the obvious failure: one bad read. A timeout halfway through pagination, a rate-limited page, a deploy on the employer's side. A single flaky read closes nothing; the next good read puts everything back as it was.

What confirmation alone can't handle is a list that is consistently short.

  1. Read

    400 listed

  2. Next read

    200 listed

  3. And the next

    still 200

  4. 200 closures

    for jobs that are still open

A short list that stays short is confirmed by every read after it. Every missing posting looks like a closure.

Short lists aren't exotic. A provider caps its API at the first N results. A paginated page stops rendering page two. A feed starts carrying part of each board. From the outside, every one of these is indistinguishable from an employer taking half its jobs down.

Big drops get a second look

Employers close jobs in ones and twos, and a real mass closure (a hiring freeze, a store network shutting down) is rare. A broken read that drops half a board is far more common than a company deleting half its openings in an hour.

So a sudden drop isn't treated like the ordinary trickle of closures. Safeguards stop a board that suddenly lists fewer jobs from closing jobs that are still open: the drop is checked before anything closes, and when the broken read heals in the meantime (the provider's cap is lifted, the page renders again, the list comes back whole), nothing is deleted. You never see it.

A safeguard buys time. It can't decide alone.

If the list stays short, the closures eventually have to go through. A hold that never released would keep a genuinely frozen company's jobs live forever, and a catalogue that serves closed jobs is the failure people actually notice.

From the list alone, "this provider now returns half of each board" and "these employers closed half their jobs" are the same observation. No rule on that one list can tell them apart; the evidence has to come from outside it.

Proof, not a bad day

The same instinct runs one level up. A board that fails isn't declared dead on a bad day: it's retired only once it's proven gone. A board that keeps failing without that proof is retried, not dropped. Flaky boards come back. Dead ones get proven dead.

The principle under all of it: a missing thing is weaker evidence than a present one. A posting on the list is proof it's live. A posting off the list is a hint that it might not be, and how much weight the hint deserves depends on how many other postings went missing at the same moment.

If you scrape boards yourself, this is the part worth stealing: never let a single read, or a single board's diff, be the only evidence for deleting a lot of data at once.

What this means for a mirror

Two consequences if you keep a copy of the catalogue.

Closures can arrive a little late, on purpose. A posting that really closed in a mass event may still be served while the drop is being checked. If your product shows "still open", that's a short stretch of optimism, and it's the price of not deleting jobs that are still open.

A deletion isn't final. When a short list does get through, the jobs it closed come back as soon as their boards list them again, under the same id. Their tombstones are removed and /v1/jobs/{id} answers again. So replay /v1/jobs/expired as deletes, but model them so an id can return: a soft delete, or an upsert that doesn't care whether the row was there before. A mirror that treats a tombstone as a permanent blocklist will lose exactly the jobs this post is about.

reason tells you which kind of exit you're looking at. expired means the posting left its board: this post's mechanism. removed means we stopped serving it: it failed a publish check, or was marked a duplicate. The job behind a removed tombstone may still be live.

Expiry, as you see it from the API, is on the coverage page.