rails / solid_queue

Database-backed Active Job backend
MIT License
1.95k stars 130 forks source link

SolidQueue not auto start until manual run rake solid_queue:start #406

Closed YutoYasunaga closed 1 week ago

YutoYasunaga commented 1 week ago

I am encountering an issue where I have deployed two applications on the same server using Kamal. The first application operates normally, but the jobs for the second application are not processed automatically. These jobs only start processing when I manually execute rake solid_queue:start. Otherwise, they remain in the solid_queue_ready_executions table indefinitely.

I suspect there might be a configuration issue or a problem with how SolidQueue handles multiple applications on the same server. Here are the steps I've taken:

I use MySQL for DB, and this is my config accessories for 2 apps

App 1:

accessories:
  mysql:
    port: "3306:3306"

App 2:

accessories:
  mysql:
    port: "3307:3306"

Could someone help diagnose this problem or provide guidance on what might be going wrong?

Thank you for your assistance.

YutoYasunaga commented 1 week ago

Sorry my bad, I forgot to add this line to config/puma.rb 🥶🥶🥶

plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]