Loads DB-defined agent definitions and starts them as DynamicActor
processes under Cyclium.ActorSupervisor.
Usage
# Load all enabled definitions at application startup
Cyclium.DynamicActor.Loader.load_all()
# Load a single definition by actor_id
Cyclium.DynamicActor.Loader.load("my_custom_monitor")
# Stop a running dynamic actor
Cyclium.DynamicActor.Loader.stop("my_custom_monitor")
# Reload (stop + start) after definition update
Cyclium.DynamicActor.Loader.reload("my_custom_monitor")
Summary
Functions
Loads and starts a single agent definition by actor_id.
Loads all enabled agent definitions from DB and starts them.
Returns {:ok, started_count}.
Returns the process name for a dynamic actor.
Reloads a dynamic actor (stop + start from latest DB definition).
Reloads all enabled dynamic actors (stop + start from latest DB definitions).
Stops a running dynamic actor by actor_id.
Stops all running dynamic actors.
Functions
Loads and starts a single agent definition by actor_id.
Loads all enabled agent definitions from DB and starts them.
Returns {:ok, started_count}.
Returns the process name for a dynamic actor.
Reloads a dynamic actor (stop + start from latest DB definition).
Reloads all enabled dynamic actors (stop + start from latest DB definitions).
Stops a running dynamic actor by actor_id.
Stops all running dynamic actors.