rails / solid_queue

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

Update rake task name #325

Closed andyatkinson closed 2 months ago

andyatkinson commented 2 months ago

There's no: bin/rails solid_queue:install

in the current version, but presumably this task was changed to:

bin/rails solid_queue:install:migrations

which is a current task name

bin/rails -T solid_queue
bin/rails solid_queue:dispatch            # start solid_queue dispatcher to enqueue scheduled jobs
bin/rails solid_queue:install:migrations  # Copy migrations from solid_queue to application
bin/rails solid_queue:start               # start solid_queue supervisor to dispatch and process jobs
bin/rails solid_queue:work                # start solid_queue supervisor to process jobs
dhh commented 2 months ago

https://github.com/rails/solid_queue/blob/main/lib/solid_queue/tasks.rb#L3

andyatkinson commented 2 months ago

Makes sense. I don't know why bundle add solid_queue initially added this old version constraint "~> 0.1.2". I removed that and ran bundle update solid_queue to get 0.8.1, which has those updated tasks:

bin/rails -T solid_queue
bin/rails solid_queue:install  # Install Solid Queue
bin/rails solid_queue:start    # start solid_queue supervisor to dispatch and process jobs

😊