mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00

Spec was flaky cause work could still be in pipeline after the defer length is 0. Our length denotes the backlog, not the in progress count. This adds a mechanism for gracefully stopping the queue and avoids wait_for callse