diff --git a/apps/health/lib/health/checkers/run_queue.ex b/apps/health/lib/health/checkers/run_queue.ex index 01e80e81..3da23ae7 100644 --- a/apps/health/lib/health/checkers/run_queue.ex +++ b/apps/health/lib/health/checkers/run_queue.ex @@ -11,13 +11,15 @@ defmodule Health.Checkers.RunQueue do end def healthy? do - h? = queue_size() < 50 + h? = queue_size() <= max_run_queue_length() _ = log_processes(h?, Logger.level()) h? end + defp max_run_queue_length, do: 100 + defp queue_size do :erlang.statistics(:run_queue) end