capistrano-sidekiq icon indicating copy to clipboard operation
capistrano-sidekiq copied to clipboard

Start / Stop tasks (and others) missing for Monit

Open jbrodie opened this issue 4 years ago • 3 comments

On beta5 and these tasks seem to have been removed from the monit.rb.

We have none of the original: Stop Start Quiet Rolling Restart

❯ bundle exec cap production sidekiq:stop
(Backtrace restricted to imported tasks)
cap aborted!
Don't know how to build task 'sidekiq:stop' (See the list of available tasks with `cap --tasks`)
Did you mean?  sidekiq:monit:stop

(See full trace by running task with --trace)
❯ bundle exec cap production sidekiq:start
bundle exec (Backtrace restricted to imported tasks)
cap aborted!
Don't know how to build task 'sidekiq:start' (See the list of available tasks with `cap --tasks`)
Did you mean?  sidekiq:restart

(See full trace by running task with --trace)
❯ bundle exec cap -T | grep sidekiq
cap sidekiq:monit:config           # Config Sidekiq monit-service
cap sidekiq:monit:monitor          # Monitor Sidekiq monit-service
cap sidekiq:monit:restart          # Restart Sidekiq monit-service
cap sidekiq:monit:start            # Start Sidekiq monit-service
cap sidekiq:monit:stop             # Stop Sidekiq monit-service
cap sidekiq:monit:unmonitor        # Unmonitor Sidekiq monit-service
cap sidekiq:restart                # Restart sidekiq

Capfile contains:

require 'capistrano/sidekiq'
install_plugin Capistrano::Sidekiq
install_plugin Capistrano::Sidekiq::Monit

Am I missing something here?

jbrodie avatar Nov 16 '20 19:11 jbrodie

Ya sorry, didn't mean to close this. Seems like these are missing.

jbrodie avatar Nov 16 '20 19:11 jbrodie

It's not just Monit. The default sidekiq.rake file also references tasks that don't exist anymore. Looks like this gem only supports systemd and maybe upstart now?

virusman avatar Dec 26 '20 05:12 virusman

The tasks are still defined here.

~~Dunno why they are not accessible. Did anyone manage to bypass this?~~

EDIT: I did not bundle after some dependencies got updated. Everything is working as expected now. Maybe we can close this issue?

plribeiro3000 avatar Nov 24 '21 21:11 plribeiro3000