Watch
1
0
Fork
You've already forked RedFlag
0
RedFlag/server/internal/taskrunner
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Fimeg 82018bfb80 taught the rocks to stop tripping over each other under load
server was sized for a campfire, not a fleet. 25 db connections, every agent
report flinging goroutines into the void, the syncer plodding one repo at a
time while clutching a lock nobody needed. loosened the choke points:

- db pool 25 -> 100 + connection lifetime, all env-tunable
- bounded pool for the report-path fire-and-forget work; /health/tasks to
  watch it breathe. no more unbounded goroutine spray per report
- upstream syncer runs concurrent now, dropped the dead mutex around repology
  fetches, reconciler single-flights instead of locking through the whole crawl
- scheduler caps jobs per tick so an aligned fleet can't stampede the db
- swatted a context-cancel bug that was quietly killing immediate syncs

builds clean, race detector's calm.
2026-06-07 19:17:08 -04:00
..
taskrunner.go taught the rocks to stop tripping over each other under load 2026-06-07 19:17:08 -04:00
taskrunner_test.go taught the rocks to stop tripping over each other under load 2026-06-07 19:17:08 -04:00