2014-09-02 18:07:02 +05:30
|
|
|
namespace :sidekiq do
|
2015-09-11 14:41:01 +05:30
|
|
|
desc "GitLab | Stop sidekiq"
|
2014-09-02 18:07:02 +05:30
|
|
|
task :stop do
|
2017-08-17 22:00:37 +05:30
|
|
|
system(*%w(bin/background_jobs stop))
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
desc "GitLab | Start sidekiq"
|
2014-09-02 18:07:02 +05:30
|
|
|
task :start do
|
2017-08-17 22:00:37 +05:30
|
|
|
system(*%w(bin/background_jobs start))
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
desc 'GitLab | Restart sidekiq'
|
|
|
|
task :restart do
|
2017-08-17 22:00:37 +05:30
|
|
|
system(*%w(bin/background_jobs restart))
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
desc "GitLab | Start sidekiq with launchd on Mac OS X"
|
2014-09-02 18:07:02 +05:30
|
|
|
task :launchd do
|
2017-08-17 22:00:37 +05:30
|
|
|
system(*%w(bin/background_jobs start_no_deamonize))
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
end
|