Skip to main content

nodes.agent_node_sync

Background synchronization with central Agent Node API.

run_agent_node_sync

async def run_agent_node_sync(stop_event: asyncio.Event) -> None

Register and heartbeat this node until stop_event is set.

Credentials may come from env (DATALAYER_RUNTIMES_URL + DATALAYER_API_KEY) or be supplied at runtime by the Agent Node UI via POST /api/v1/agent-node/credentials. The loop reacts to those changes so a node started without env credentials still registers and sends health as soon as the user signs in.