debian-mirror-gitlab/bin/sidekiq-cluster

21 lines
541 B
Text
Raw Normal View History

2020-04-08 14:13:33 +05:30
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'optparse'
require_relative '../lib/gitlab'
require_relative '../lib/gitlab/utils'
require_relative '../lib/gitlab/sidekiq_config/cli_methods'
2021-04-29 21:17:54 +05:30
require_relative '../lib/gitlab/sidekiq_config/worker_matcher'
2020-04-08 14:13:33 +05:30
require_relative '../lib/gitlab/sidekiq_cluster'
require_relative '../lib/gitlab/sidekiq_cluster/cli'
Thread.abort_on_exception = true
cli = Gitlab::SidekiqCluster::CLI.new
begin
cli.run
rescue Gitlab::SidekiqCluster::CLI::CommandError => error
abort error.message
end