Cyclium.NodeIdentity (Cyclium v0.1.12)

Copy Markdown View Source

Resolves the identity of the current node for work claiming and trigger requests.

By default uses node(), but this can be overridden via config for environments where multiple instances share the same Erlang node name (e.g., dev containers all running with identical node names).

Configuration

# Use a static override
config :cyclium, :node_identity, "dev-jane"

# Use a callback module
config :cyclium, :node_identity, {MyApp.NodeIdentity, :resolve, []}

If unconfigured, falls back to node() |> to_string() with a random suffix appended when node() returns :nonode@nohost (non-distributed mode).

Summary

Functions

Returns a unique string identifier for this node instance.

Functions

name()

@spec name() :: String.t()

Returns a unique string identifier for this node instance.