Commit 131ff56d authored by Nick Thomas's avatar Nick Thomas

Merge branch 'add-warnings-to-sidekiq-rake-tasks' into 'master'

Add deprecation warning to tasks in `sidekiq` namespace

See merge request gitlab-org/gitlab!22983
parents e162c83c 4d1af99f
---
title: Add deprecation warning to Rake tasks in sidekiq namespace
merge_request:
author:
type: removed
namespace :sidekiq do namespace :sidekiq do
desc "GitLab | Stop sidekiq" 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 | Stop sidekiq"
task :stop do task :stop do
deprecation_warning!
system(*%w(bin/background_jobs stop)) system(*%w(bin/background_jobs stop))
end end
desc "GitLab | Start sidekiq" desc "[DEPRECATED] GitLab | Start sidekiq"
task :start do task :start do
deprecation_warning!
system(*%w(bin/background_jobs start)) system(*%w(bin/background_jobs start))
end end
desc 'GitLab | Restart sidekiq' desc '[DEPRECATED] GitLab | Restart sidekiq'
task :restart do task :restart do
deprecation_warning!
system(*%w(bin/background_jobs restart)) system(*%w(bin/background_jobs restart))
end end
desc "GitLab | Start sidekiq with launchd on Mac OS X" desc "[DEPRECATED] GitLab | Start sidekiq with launchd on Mac OS X"
task :launchd do task :launchd do
deprecation_warning!
system(*%w(bin/background_jobs start_no_deamonize)) system(*%w(bin/background_jobs start_no_deamonize))
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment