Marc-André Bombeck
b795b3b1f3
fix(jobs): enqueue during boot waits for the boss instead of dropping
...
The server answers before pg-boss is bound, and a producer rebinds in
the background after losing its connection. A request in either window
read the boss as null and skipped its enqueue: OAuth callbacks lost the
first sync and the history backfill, measurement and mood writes lost
their rollup recompute, WHOOP webhook deliveries were dropped.
whenBossReady() waits for the boss while a start is under way (boot or
reconnect), bounded at 60 s and logged when it gives up, and answers
null at once when nothing is coming. enqueueWhenBossReady() sends at
once through a bound boss and otherwise defers the send to the
background, so the request is not held for the boot.
2026-10-21 21:37:21 +02:00
..
2026-10-20 09:08:40 +02:00
2026-10-20 20:56:08 +02:00
2026-10-21 19:36:06 +02:00
2026-10-20 09:08:40 +02:00
2026-10-03 18:18:56 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 13:16:22 +02:00
2026-10-16 05:36:42 +02:00
2026-10-21 20:20:10 +02:00
2026-10-20 13:53:54 +02:00
2026-09-25 21:55:14 +02:00
2026-09-10 03:55:46 +02:00
2026-10-21 19:24:21 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 13:53:54 +02:00
2026-10-21 19:24:21 +02:00
2026-10-21 19:24:21 +02:00
2026-10-16 01:23:26 +02:00
2026-10-21 16:25:26 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 16:09:28 +02:00
2026-10-21 12:32:12 +02:00
2026-10-16 01:20:53 +02:00
2026-10-21 19:24:21 +02:00
2026-10-20 13:29:14 +02:00
2026-10-20 13:57:11 +02:00
2026-10-20 20:56:08 +02:00
2026-10-21 21:37:21 +02:00
2026-10-20 09:08:40 +02:00
2026-10-21 21:37:21 +02:00
2026-10-21 20:51:13 +02:00
2026-10-20 13:29:14 +02:00
2026-10-20 20:20:00 +02:00
2026-10-20 13:01:45 +02:00
2026-10-21 19:24:21 +02:00
2026-10-21 15:06:40 +02:00
2026-10-20 09:08:40 +02:00
2026-10-21 10:40:45 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 09:48:15 +02:00
2026-10-20 20:56:08 +02:00
2026-08-02 16:36:25 +02:00
2026-10-20 09:08:40 +02:00
2026-10-21 20:42:06 +02:00
2026-10-20 15:39:39 +02:00
2026-10-20 13:29:14 +02:00
2026-10-01 10:06:39 +02:00
2026-10-04 15:13:52 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 13:53:54 +02:00
2026-10-21 21:37:21 +02:00
2026-10-21 12:01:53 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 09:08:40 +02:00
2026-10-21 21:37:21 +02:00
2026-10-20 13:29:14 +02:00
2026-10-21 21:37:21 +02:00
2026-10-20 16:01:13 +02:00
2026-08-06 04:59:25 +02:00
2026-10-21 19:49:07 +02:00
2026-10-11 15:17:43 +02:00
2026-10-21 21:18:33 +02:00
2026-10-20 20:56:08 +02:00
2026-10-20 09:28:40 +02:00
2026-10-21 21:37:21 +02:00
2026-10-20 13:29:14 +02:00
2026-10-11 13:56:28 +02:00
2026-10-20 13:01:45 +02:00
2026-10-09 15:02:14 +02:00
2026-09-30 22:21:46 +02:00
2026-10-21 16:50:14 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 09:08:40 +02:00
2026-10-21 21:37:21 +02:00
2026-10-21 21:18:33 +02:00
2026-10-21 20:14:20 +02:00