/engineeringProduction notes · 5 write-ups

Production
notes

Incidents from the worker that refreshes visa-sponsored European software jobs every six hours. Numbers from production. No runbooks.

Flight path

How a role
reaches the board

Fetch runs in its own container, but it is not a separate system: the worker imports the same fetch, scrape and catalog packages as the panel and writes the same Postgres. Every box below comes from a production note.

Layered timeouts

Inner layers
are strictly shorter

Every blocking boundary gets a hard ceiling. On timeout the company is skipped and logged; remaining companies in that country continue. Log scale.

  1. L1 · HTTP client15s
  2. L2 · Playwright process90s
  3. L3 · Per-company wait_for300s
  4. L4 · Scheduler join · country2700s
  5. L5 · Scheduler sleep6h
Incident log

Five notes,
one worker

Each entry opens to what we saw, what it was not, what shipped and the rule we kept. Full write-ups live on /engineering/<slug>.

INC-056 September 2026 · measurementOne event loop: the thread error is gone357 thread errors in the outage · 0 in 3,375 attempts afterResolved

What we saw

On 2 September country fetch stopped starting an OS thread per company. Companies now run on one event loop, bounded by asyncio.Semaphore.

What it was not

A speed win. The healthy week ran at concurrency 4 on a thread pool; the after window runs at concurrency 2 on the event loop. Two knobs moved, so duration is not scored.

What we shipped

FETCH_SCHEDULE_CONCURRENCY=2 from 16:09 UTC on 3 September. Counts from Postgres company_fetch_attempts and fetch_runs.

The rule

Judge the model on whether can't start new thread returns. Board flags went from 186 / 394 to 3 / 401.

Read the full note →
INC-046 September 2026 · incidentcan't start new thread: 186 companies looked dead186 / 394 companies flagged · 357 / 358 errors were the same RuntimeErrorResolved

What we saw

The EC2 fetch worker could not start OS threads, so every six-hour country cycle failed in about a second and stamped a sticky “fetch problem” flag on the catalog.

What it was not

Employer ATS outages. “asyncio uses too much RAM.” A reason to rewrite the worker in Go. The bug was the concurrency model, not the language.

What we shipped

One event loop per country. A semaphore for in-flight companies. Playwright at one.

The rule

Treat “cannot start a thread” as infrastructure, not as a broken employer.

Read the full note →
INC-037 September 2026 · incident678 Postgres round-trips: the board was not hung678 DB round-trips for 98 companies · Germany ~89s → ~1.7sResolved

What we saw

One Germany load made 678 Postgres round-trips for 98 companies. The jobs SQL was 0.67s. Location-label helpers ate ~44s.

What it was not

“Remote Postgres is slow.” “Descriptions are huge now.” WAN latency (~60ms) multiplied the bug. It was not the bug.

What we shipped

Cache the merged label dict in process memory. Board pagination omits description_text. Admin stats load on a separate request.

The rule

Profile SQL versus post-process before blaming the database. Never put remote I/O inside a helper that runs per row of a list.

Read the full note →
INC-027 September 2026 · incidentCache check in the hot path: Redis did what Postgres did2 Redis round-trips × N companies · board back to ~1.3–1.7sResolved

What we saw

A generation-aware cache asked Redis on every read whether the generation had moved — inside country_label(), per company, on every board load.

What it was not

A caching bug in tests. With REDIS_URL unset, local dev and unit tests took the short-circuit path. Production did not.

What we shipped

Throttle the Redis check to at most once every 5 seconds. Other processes converge within 5s.

The rule

A cache read that does I/O is not a cache. If a path behaves differently with Redis on, test it with Redis on.

Read the full note →
INC-017 September 2026 · incidentPlaywright hung for 15 hours and the worker still looked Up97/98 companies done · scheduler blocked 15+ hours · no join timeoutResolved

What we saw

On 10 July a generic career page needed a browser. Playwright started at 00:11:58 and never returned. The scheduler waited on wait_for_fetch_thread() with no timeout.

What it was not

Missing HTTP timeouts — they were already 15s. A stuck renderer does not care about page.goto.

What we shipped

Layered timeouts, inner strictly shorter than outer. The panel no longer reaps running fetches it does not own.

The rule

Nothing in the fetch path may block without a bounded timeout. “Up” is not a health signal when the join has no deadline.

Read the full note →
Before / after

Readouts
from production

Same environment before and after each fix — the board measured against the same remote EC2 Postgres.

  • Germany board · page 1GET /api/board
    Before ~89s
    After ~1.7s
  • Location sync × 98 companiespost-process
    Before 44s
    After 0.51s
  • Companies flaggedboard flags
    Before 186 / 394
    After 3 / 401
  • Thread errorscan't start new thread
    Before 357
    After 0
  • Scheduler blockedno join timeout
    Before 15h+
    After ≤ 45 min join
Guardrails

What the system
will not do

Taken from the About, MCP and Privacy pages.

01

No private data, no invented postings

Openings come from the same public URLs candidates use. Kuchup never claims to be the employer; you apply on the company’s page.

02

Per-user storage

Profiles, master resumes and tailored documents are stored per user in Postgres. Nothing sensitive is committed to the public repository.

03

Gated access

MCP needs your account — OAuth or a personal API token — with a shared daily write/render budget.

04

Edge protection

Cloudflare security signals, including Turnstile where enabled, protect sign-in and the service.

This worker is why the catalog of visa-sponsored software jobs refreshes about every six hours.