summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 18:08:34 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 18:08:34 +0000
commit571d993b49313dd806bd3f6af16d36c26d9d28ca (patch)
tree06bd12c4b56b97881aef8a00d4d46698de1eb63f /lib/tasks
parent9044365a91112d426fbbfba07eca595652bbe2df (diff)
downloadgitlab-ce-571d993b49313dd806bd3f6af16d36c26d9d28ca.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/sidekiq.rake25
1 files changed, 21 insertions, 4 deletions
diff --git a/lib/tasks/sidekiq.rake b/lib/tasks/sidekiq.rake
index dd9ce86f7ca..cb9f4c751ed 100644
--- a/lib/tasks/sidekiq.rake
+++ b/lib/tasks/sidekiq.rake
@@ -1,21 +1,38 @@
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
+ deprecation_warning!
+
system(*%w(bin/background_jobs stop))
end
- desc "GitLab | Start sidekiq"
+ desc "[DEPRECATED] GitLab | Start sidekiq"
task :start do
+ deprecation_warning!
+
system(*%w(bin/background_jobs start))
end
- desc 'GitLab | Restart sidekiq'
+ desc '[DEPRECATED] GitLab | Restart sidekiq'
task :restart do
+ deprecation_warning!
+
system(*%w(bin/background_jobs restart))
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
+ deprecation_warning!
+
system(*%w(bin/background_jobs start_no_deamonize))
end
end