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-08-02 01:21:03 +02:00
2026-10-20 03:34:51 +02:00
2026-07-29 14:20:56 +02:00
2026-09-03 06:05:58 +02:00
2026-07-21 13:08:28 +02:00
2026-08-13 06:16:44 +02:00
2026-10-08 09:54:42 +02:00
2026-07-29 16:08:41 +02:00
2026-09-24 09:29:00 +02:00
2026-07-26 14:04:44 +02:00
2026-10-04 21:21:32 +02:00
2026-09-27 13:13:50 +02:00
2026-09-26 19:22:03 +02:00
2026-09-03 02:22:37 +02:00
2026-10-11 12:31:37 +02:00
2026-10-21 21:37:21 +02:00
2026-07-27 23:23:53 +02:00
2026-07-27 23:23:53 +02:00
2026-06-19 20:54:56 +02:00
2026-09-24 09:29:00 +02:00
2026-10-20 09:08:40 +02:00
2026-10-06 19:32:31 +02:00
2026-10-20 09:08:40 +02:00
2026-10-18 13:10:21 +02:00
2026-10-20 09:08:40 +02:00
2026-08-02 01:21:03 +02:00
2026-07-27 23:23:53 +02:00
2026-06-19 22:20:31 +02:00
2026-10-20 09:08:40 +02:00
2026-07-19 13:24:22 +02:00
2026-07-27 23:23:53 +02:00
2026-09-24 09:07:16 +02:00
2026-10-04 15:56:56 +02:00
2026-10-21 10:40:45 +02:00
2026-09-26 00:38:26 +02:00
2026-09-25 21:48:04 +02:00
2026-10-19 11:06:55 +02:00
2026-08-14 05:53:17 +02:00
2026-09-25 22:35:11 +02:00
2026-10-04 15:56:56 +02:00
2026-09-25 00:31:48 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 09:58:02 +02:00
2026-10-20 09:08:40 +02:00
2026-10-21 12:46:14 +02:00
2026-07-27 23:23:53 +02:00
2026-10-21 12:46:14 +02:00
2026-10-21 12:46:14 +02:00
2026-10-21 19:24:21 +02:00
2026-10-20 20:26:30 +02:00
2026-08-09 22:09:02 +02:00
2026-10-20 10:52:54 +02:00
2026-07-27 23:23:53 +02:00
2026-10-10 12:59:25 +02:00
2026-10-20 10:52:54 +02:00
2026-07-24 15:10:24 +02:00
2026-05-09 23:50:08 +02:00
2026-05-05 20:30:30 +02:00
2026-07-12 11:08:59 +02:00
2026-10-20 09:08:40 +02:00
2026-10-19 11:06:55 +02:00
2026-09-24 19:52:39 +02:00
2026-10-20 13:01:45 +02:00
2026-07-27 23:23:53 +02:00
2026-10-21 19:53:57 +02:00
2026-10-15 11:07:28 +02:00
2026-06-19 22:20:31 +02:00
2026-09-25 07:39:06 +02:00
2026-10-04 15:56:56 +02:00
2026-10-09 23:03:03 +02:00
2026-09-25 00:31:30 +02:00
2026-10-01 10:52:48 +02:00
2026-07-29 14:26:26 +02:00
2026-10-08 09:05:54 +02:00
2026-06-19 22:20:31 +02:00
2026-10-01 09:23:45 +02:00
2026-07-27 23:23:53 +02:00
2026-07-27 23:23:53 +02:00
2026-10-20 09:38:29 +02:00
2026-10-11 12:15:03 +02:00
2026-09-26 15:27:25 +02:00
2026-07-27 23:23:53 +02:00
2026-10-21 12:22:36 +02:00
2026-10-08 08:41:25 +02:00
2026-10-05 12:40:55 +02:00
2026-10-20 13:01:45 +02:00
2026-10-20 09:08:40 +02:00
2026-09-26 22:14:03 +02:00
2026-10-20 13:01:45 +02:00
2026-10-20 13:01:45 +02:00
2026-08-08 11:31:39 +02:00
2026-10-19 11:06:55 +02:00
2026-07-16 23:33:33 +02:00
2026-07-27 23:23:53 +02:00
2026-10-05 12:40:55 +02:00
2026-10-21 01:17:20 +02:00
2026-09-10 10:15:31 +02:00
2026-10-04 18:23:14 +02:00
2026-09-26 22:08:51 +02:00
2026-10-21 19:56:16 +02:00
2026-10-01 09:23:45 +02:00
2026-05-14 23:49:32 +02:00
2026-10-16 05:55:31 +02:00
2026-10-21 19:53:57 +02:00
2026-09-24 12:15:56 +02:00
2026-10-01 13:23:17 +02:00
2026-08-02 01:21:03 +02:00
2026-07-27 23:23:53 +02:00
2026-06-03 19:31:16 +02:00
2026-10-08 10:32:11 +02:00
2026-08-14 09:46:48 +02:00
2026-06-10 13:34:37 +02:00
2026-10-04 21:19:32 +02:00
2026-10-08 09:05:54 +02:00
2026-08-14 02:29:01 +02:00
2026-07-27 23:23:53 +02:00
2026-10-20 16:01:13 +02:00
2026-10-20 03:34:51 +02:00
2026-07-27 23:23:53 +02:00
2026-07-27 23:23:53 +02:00
2026-07-28 14:00:44 +02:00
2026-07-27 23:23:53 +02:00
2026-07-24 20:05:41 +02:00
2026-07-27 23:23:53 +02:00
2026-07-27 23:23:53 +02:00
2026-10-20 09:08:40 +02:00
2026-06-19 22:20:31 +02:00
2026-10-20 09:08:40 +02:00
2026-07-29 16:08:41 +02:00
2026-07-19 14:03:52 +02:00
2026-10-03 17:53:36 +02:00
2026-09-24 09:06:22 +02:00
2026-07-27 23:23:53 +02:00