2014-09-02 18:07:02 +05:30
|
|
|
namespace :sidekiq do
|
2020-03-09 13:42:32 +05:30
|
|
|
def deprecation_warning!
|
|
|
|
warn <<~WARNING
|
|
|
|
This task is deprecated and will be removed in 13.0 as it is thought to be unused.
|
|
|
|
|
|
|
|
If you are using this task, please comment on the below issue:
|
|
|
|
https://gitlab.com/gitlab-org/gitlab/issues/196731
|
|
|
|
WARNING
|
|
|
|
end
|
|
|
|
|
|
|
|
desc '[DEPRECATED] GitLab | Sidekiq | Stop sidekiq'
|
2014-09-02 18:07:02 +05:30
|
|
|
task :stop do
|
2020-03-09 13:42:32 +05:30
|
|
|
deprecation_warning!
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
system(*%w(bin/background_jobs stop))
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
desc '[DEPRECATED] GitLab | Sidekiq | Start sidekiq'
|
2014-09-02 18:07:02 +05:30
|
|
|
task :start do
|
2020-03-09 13:42:32 +05:30
|
|
|
deprecation_warning!
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
system(*%w(bin/background_jobs start))
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
desc '[DEPRECATED] GitLab | Sidekiq | Restart sidekiq'
|
2014-09-02 18:07:02 +05:30
|
|
|
task :restart do
|
2020-03-09 13:42:32 +05:30
|
|
|
deprecation_warning!
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
system(*%w(bin/background_jobs restart))
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
desc '[DEPRECATED] GitLab | Sidekiq | Start sidekiq with launchd on Mac OS X'
|
2014-09-02 18:07:02 +05:30
|
|
|
task :launchd do
|
2020-03-09 13:42:32 +05:30
|
|
|
deprecation_warning!
|
|
|
|
|
2020-04-08 14:13:33 +05:30
|
|
|
system(*%w(bin/background_jobs start_silent))
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
end
|