2013-01-09 00:44:05 -05:00
|
|
|
namespace :sidekiq do
|
2020-01-15 13:08:34 -05:00
|
|
|
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
|
|
|
|
|
2020-01-23 01:08:32 -05:00
|
|
|
desc '[DEPRECATED] GitLab | Sidekiq | Stop sidekiq'
|
2013-01-09 00:44:05 -05:00
|
|
|
task :stop do
|
2020-01-15 13:08:34 -05:00
|
|
|
deprecation_warning!
|
|
|
|
|
2017-02-22 13:18:40 -05:00
|
|
|
system(*%w(bin/background_jobs stop))
|
2013-01-09 00:44:05 -05:00
|
|
|
end
|
|
|
|
|
2020-01-23 01:08:32 -05:00
|
|
|
desc '[DEPRECATED] GitLab | Sidekiq | Start sidekiq'
|
2013-10-25 03:39:31 -04:00
|
|
|
task :start do
|
2020-01-15 13:08:34 -05:00
|
|
|
deprecation_warning!
|
|
|
|
|
2017-02-22 13:18:40 -05:00
|
|
|
system(*%w(bin/background_jobs start))
|
2013-10-09 10:45:32 -04:00
|
|
|
end
|
2013-10-09 09:44:25 -04:00
|
|
|
|
2020-01-23 01:08:32 -05:00
|
|
|
desc '[DEPRECATED] GitLab | Sidekiq | Restart sidekiq'
|
2013-10-25 03:39:31 -04:00
|
|
|
task :restart do
|
2020-01-15 13:08:34 -05:00
|
|
|
deprecation_warning!
|
|
|
|
|
2017-02-22 13:18:40 -05:00
|
|
|
system(*%w(bin/background_jobs restart))
|
2013-01-09 00:44:05 -05:00
|
|
|
end
|
2013-02-27 13:40:01 -05:00
|
|
|
|
2020-01-23 01:08:32 -05:00
|
|
|
desc '[DEPRECATED] GitLab | Sidekiq | Start sidekiq with launchd on Mac OS X'
|
2013-02-12 10:01:55 -05:00
|
|
|
task :launchd do
|
2020-01-15 13:08:34 -05:00
|
|
|
deprecation_warning!
|
|
|
|
|
2017-02-22 13:18:40 -05:00
|
|
|
system(*%w(bin/background_jobs start_no_deamonize))
|
2013-10-09 09:46:00 -04:00
|
|
|
end
|
2013-01-09 00:44:05 -05:00
|
|
|
end
|