summaryrefslogtreecommitdiff
path: root/lib/tasks/sidekiq.rake
blob: d74878835fd4ef67ed2d842ab2c24cd2b7e66735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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'
  task :start do
    deprecation_warning!

    system(*%w(bin/background_jobs start))
  end

  desc '[DEPRECATED] GitLab | Sidekiq | Restart sidekiq'
  task :restart do
    deprecation_warning!

    system(*%w(bin/background_jobs restart))
  end

  desc '[DEPRECATED] GitLab | Sidekiq | Start sidekiq with launchd on Mac OS X'
  task :launchd do
    deprecation_warning!

    system(*%w(bin/background_jobs start_silent))
  end
end