Skip to content

Commit

Permalink
Update geoportal_sidekiq.rake
Browse files Browse the repository at this point in the history
Use sidekiq.service
  • Loading branch information
ewlarson committed Jan 11, 2024
1 parent 3fd7d23 commit a69fabe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/tasks/geoportal/geoportal_sidekiq.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ require 'sidekiq/api'
namespace :geoportal do
desc 'Stop sidekiq'
task sidekiq_stop: :environment do
sh "sudo systemctl stop sidekiq-geoportal.service || true"
sh "sudo systemctl stop sidekiq.service || true"
sleep(5)
sh "sudo systemctl status --no-pager sidekiq-geoportal.service || true"
sh "sudo systemctl status --no-pager sidekiq.service || true"
end

task sidekiq_start: :environment do
sh "sudo systemctl start sidekiq-geoportal.service || true"
sh "sudo systemctl start sidekiq.service || true"
sleep(5)
sh "sudo systemctl status --no-pager sidekiq-geoportal.service || true"
sh "sudo systemctl status --no-pager sidekiq.service || true"
end

desc 'Check sidekiq stats'
Expand Down

0 comments on commit a69fabe

Please sign in to comment.