Without this, we lose the waiting part of graceful shutdown, and we might shut down the process while a queue job is still in flight. We could replace CloneCounterObserver with tokio_util::task::TaskTracker I think, but we'd have to change how we structure our work into Tokio tasks, and maybe replace our existing use of JoinSet. This would probably be a good thing to punt to a dedicated follow-up PR.
Originally posted by @divergentdave in #2251 (comment)
Without this, we lose the waiting part of graceful shutdown, and we might shut down the process while a queue job is still in flight. We could replace
CloneCounterObserverwithtokio_util::task::TaskTrackerI think, but we'd have to change how we structure our work into Tokio tasks, and maybe replace our existing use ofJoinSet. This would probably be a good thing to punt to a dedicated follow-up PR.Originally posted by @divergentdave in #2251 (comment)