gitlab-org--gitlab-foss/lib/tasks/sidekiq.rake

39 lines
944 B
Ruby
Raw Normal View History

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