


95b69a4a2d
fix(queue): bump levelqueue to v0.5.1 and remove workarounds (#40219) (#40350)
Backport https://github.com/go-gitea/gitea/pull/40219
levelqueue v0.5.1 fixes this upstream
(https://gitea.com/lunny/levelqueue/pulls/8), so this now only bumps the
dependency.
A push wrote "high" before the payload, so an interrupted push left an
id counted with no key. `LPop` then returned `ErrNotFound` without
advancing "low" and the wrapper retried forever: nothing popped, no
worker started, later items unreachable. All were only fixable by
clearing the queue, losing the backlog:
- https://github.com/go-gitea/gitea/issues/32006 — mail, 0 workers
- https://github.com/go-gitea/gitea/issues/28919 — mirror, "already in
queue"
- https://github.com/go-gitea/gitea/issues/33862 — archives hanging
- https://github.com/go-gitea/gitea/issues/33882 — self-healing request
v0.5.1 writes counter and payload in one batch, moves the counters past
missing keys, and repairs leftover unique-queue set entries, so affected
instances recover on their next pop.
No test: the behaviour lives in the dependency, which covers it in its
own `recover_test.go`.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: William Desportes <williamdes@wdes.fr>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-11-13 17:12:25 +00:00
..
2026-10-31 19:12:36 +00:00
2026-02-01 10:35:51 +00:00
2026-10-08 11:25:28 -07:00
2026-10-16 09:28:24 +00:00
2026-08-24 18:26:10 +00:00
2026-05-26 15:49:31 -07:00
2026-08-27 15:31:20 +00:00
2026-08-09 10:25:06 +00:00
2026-10-31 19:12:36 +00:00
2026-11-09 16:36:34 +00:00
2026-03-31 17:22:18 +00:00
2026-06-08 18:18:58 +00:00
2026-07-24 02:05:38 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-10-06 15:24:11 +08:00
2026-09-24 20:23:15 +00:00
2026-07-15 17:30:01 +00:00
2026-06-08 18:18:58 +00:00
2026-10-21 04:35:32 +00:00
2026-10-10 20:23:39 +00:00
2026-08-09 10:25:06 +00:00
2026-08-29 19:54:07 +00:00
2026-10-01 10:19:33 +00:00
2026-05-26 15:49:31 -07:00
2026-08-06 18:07:36 +08:00
2026-10-13 15:46:51 +08:00
2026-10-04 13:39:06 +00:00
2026-10-24 15:06:46 +02:00
2026-11-03 17:02:11 +00:00
2026-08-19 14:15:42 +08:00
2026-10-24 13:38:33 +00:00
2026-05-29 01:12:11 +00:00
2026-10-21 10:59:03 +00:00
2026-09-16 20:41:57 +02:00
2026-09-25 06:22:04 -07:00
2026-11-08 10:02:48 +00:00
2026-07-21 13:41:54 +00:00
2026-05-26 15:49:31 -07:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2026-10-21 17:59:21 +02:00
2026-05-26 15:49:31 -07:00
2026-10-30 08:08:32 +01:00
2026-06-03 17:40:38 +00:00
2026-07-17 22:28:59 +08:00
2026-10-07 10:11:58 -07:00
2026-08-29 19:54:07 +00:00
2026-09-29 14:43:36 +02:00
2026-05-26 15:49:31 -07:00
2026-09-24 20:23:15 +00:00
2026-11-13 17:12:25 +00:00
2026-05-26 15:49:31 -07:00
2026-10-04 13:10:58 +00:00
2026-09-14 14:59:18 +00:00
2026-10-30 18:06:59 +00:00
2026-08-26 19:32:44 +00:00
2025-02-21 00:05:40 +08:00
2026-08-09 10:25:06 +00:00
2026-10-26 19:43:11 +01:00
2026-06-14 18:26:22 +00:00
2026-09-25 06:22:04 -07:00
2026-10-06 09:36:06 +00:00
2026-11-07 15:36:19 +00:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2025-01-21 18:57:07 +00:00
2026-07-23 14:31:29 +00:00
2026-10-26 20:07:13 +00:00
2026-09-23 14:34:19 +00:00
2026-05-26 15:49:31 -07:00
2026-09-22 22:49:36 +08:00
2026-08-19 12:50:06 +00:00
2026-08-09 10:25:06 +00:00
2026-03-26 00:37:48 +08:00
2026-05-26 15:49:31 -07:00
2026-07-12 17:14:09 +00:00
2025-01-09 09:21:47 +08:00
2026-11-05 19:03:52 +00:00
2026-10-07 10:11:58 -07:00
2026-10-08 11:25:28 -07:00
2026-02-20 16:12:22 +00:00
2026-06-04 13:38:56 +00:00