Открыть боковую панель
GitLab.org
Gitlab
Коммиты
95f06a36
Коммит
95f06a36
создал
Фев 16, 2023
по автору
Gregorius Marco
Просмотр файлов
Add sleep log
владелец
daa7a259
Изменения
2
Скрыть пробелы
Построчно
Рядом
app/workers/chaos/sleep_worker.rb
Просмотр файла @
95f06a36
...
...
@@ -10,6 +10,7 @@ class SleepWorker # rubocop:disable Scalability/IdempotentWorker
include
ChaosQueue
def
perform
(
duration_s
)
Sidekiq
.
logger
.
info
(
"Sleeping for
#{
duration_s
}
"
)
Gitlab
::
Chaos
.
sleep
(
duration_s
)
end
end
...
...
sidekiq_cluster/sidekiq_cluster.rb
Просмотр файла @
95f06a36
...
...
@@ -65,6 +65,8 @@ def self.start_sidekiq(queues, env:, directory:, max_concurrency:, min_concurren
cmd
<<
"-q
#{
queue
}
,
#{
count
}
"
end
puts
"Running with concurrency
#{
self
.
concurrency
(
queues
,
min_concurrency
,
max_concurrency
)
}
"
if
dryrun
puts
Shellwords
.
join
(
cmd
)
# rubocop:disable Rails/Output
return
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать