mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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