summaryrefslogtreecommitdiff
path: root/lib/tasks/sidekiq.rake
blob: dd9ce86f7cab00f3d696377b42ddb75d672ccdc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace :sidekiq do
  desc "GitLab | Stop sidekiq"
  task :stop do
    system(*%w(bin/background_jobs stop))
  end

  desc "GitLab | Start sidekiq"
  task :start do
    system(*%w(bin/background_jobs start))
  end

  desc 'GitLab | Restart sidekiq'
  task :restart do
    system(*%w(bin/background_jobs restart))
  end

  desc "GitLab | Start sidekiq with launchd on Mac OS X"
  task :launchd do
    system(*%w(bin/background_jobs start_no_deamonize))
  end
end