Skip to content

Commit

Permalink
Merge branch 'master' into bf-surface-update-type-on-predictions
Browse files Browse the repository at this point in the history
  • Loading branch information
bfauble authored Jun 5, 2024
2 parents 6d3fd0d + afa99e3 commit 7456b11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/health/lib/health/checkers/run_queue.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7456b11

Please sign in to comment.