2020-03-11 20:09:34 -04:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-11-08 13:09:52 -05:00
|
|
|
require_relative '../sidekiq_cluster/cli'
|
2020-03-11 20:09:34 -04:00
|
|
|
|
|
|
|
Thread.abort_on_exception = true
|
|
|
|
|
|
|
|
cli = Gitlab::SidekiqCluster::CLI.new
|
|
|
|
|
|
|
|
begin
|
|
|
|
cli.run
|
|
|
|
rescue Gitlab::SidekiqCluster::CLI::CommandError => error
|
|
|
|
abort error.message
|
|
|
|
end
|