-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhealth_check.exs
More file actions
31 lines (24 loc) · 872 Bytes
/
Copy pathhealth_check.exs
File metadata and controls
31 lines (24 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Check current system state
IO.puts("\n=== System Health Check ===")
# Check if modules are loaded
modules_to_check = [
Arbor.Core.HordeSupervisor,
Arbor.Agents.CodeAnalyzer,
Arbor.Core.HordeAgentRegistry
]
Enum.each(modules_to_check, fn module ->
loaded = Code.ensure_loaded?(module)
IO.puts("#{module}: #{if loaded, do: "✓ loaded", else: "✗ not loaded"}")
end)
# Check if Horde processes are running
horde_processes = [
Arbor.Core.HordeAgentSupervisor,
Arbor.Core.HordeAgentRegistry
]
Enum.each(horde_processes, fn name ->
alive = Process.whereis(name) |> is_pid()
IO.puts("#{name}: #{if alive, do: "✓ running", else: "✗ not running"}")
end)
# Check current registry contents
registry_count = Horde.Registry.select(Arbor.Core.HordeAgentRegistry, [{{:_, :_, :_}, [], [:"$_"]}]) |> length()
IO.puts("Registry entries: #{registry_count}")