You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bblimke As mentioned in the linked Discord conversation, you can start a Locker manually, and poll the jobs table row count to wait for completion (if it's for tests, you could use rspec-wait). Something like:
It would be great if we could support draining queues similar to how sidekiq does it here: https://github.com/mperham/sidekiq/wiki/Testing#testing-worker-queueing-fake
I would recommend 2 methods:
Executing all queued jobs by draining the queue for a specific worker
HardWorker.drain
Draining the entire queue
Que.drain_all
The text was updated successfully, but these errors were encountered: