que: Que does not seem to pick up jobs, doesn't want to terminate

I’m using Rails 5 with ActiveJob and am trying to see if I can replace Sidekiq with Que.

config.active_job.queue_adapter = :que in application.rb.

When I run bundle exec que --log-level debug and queue a job (from the Rails console) I get no output, but development log gets a line added:

{"lib":"que","hostname":"xPrime","pid":2486,"thread":70188353976520,"event":"locker_start","queues":["default"]}

(Nothing about the job I just queue’d.)

When I try to shutdown the worker with ctrl+c it logs:

{"lib":"que","hostname":"xPrime","pid":2486,"thread":70188353976520,"event":"locker_stop"}

But the worker doesn’t stop; output: Finishing Que's current jobs before exiting....

Any ideas where to start?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Hey y’all, I just made this tweak (so the listener now always spins up its own dedicated connection). I couldn’t see any downsides, and it makes the code a bit cleaner anyway, so why not.

I confirmed that this fixed my local reproduction of the error, so I just released 1.0.0.beta2 with this fix. Please let me know if there are any more problems!

Hmm, alright, well if there’s a problem with Rails in general it could be a lot of things 😞 I’ll try to find some time to replicate/debug it.