nexus
Experimental. For evaluation. Interfaces, configuration, and behavior may change incompatibly.
Prerequisites
A Temporal cluster with Nexus enabled and registered endpoints, satellite workers exposing the service discovery operation, and NRO credentials permitted to access those endpoints. Lifecycle administration also requires NRO’s lifecycle schema migrations and deployment-level Site Admin access.
This module must be enabled in your Remediation Orchestrator config before it is available to scripts.
Call Temporal Nexus operations served by a process outside Remediation Orchestrator. Tenant configuration enables services; the runtime discovers their operations in the background. Each call records its observed interface; a discovery flush invalidates metadata for subsequent lookups. A run can have at most 30 calls in flight, the Temporal server’s default limit; a call beyond that fails, so a script fanning out wider must bound its own concurrency. Canceled calls keep their slot until the operation closes. Cancellation allows up to one second for the operation to close before returning.
Members
call
nexus.call(endpoint, service, operation, args?, timeout_seconds?, start_timeout_seconds?, summary?)Execute a Nexus operation and block for its result. The calling workflow’s tenant identity is attached automatically and cannot be set by the script. Unlike an activity, Temporal retries transient delivery failures within the operation timeouts. The handling service owns retries of its work, and a failure that reaches here is final for this call.
endpointstringNexus endpoint name, which the Temporal cluster maps to a namespace and task queue.servicestringNexus service name, which selects a handler within the process serving the endpoint. Maximum 1000 bytes.operationstringOperation name in the service interface observed by this call. Maximum 1000 bytes.args?optionaldict[string:any]Arguments dict for the operation. Must be JSON-encodable.timeout_seconds?optionalintEnd-to-end budget for the operation, including time spent waiting to start. 0 uses the server maximum.start_timeout_seconds?optionalintHow long the service has to start the operation, or finish it if it is synchronous, before the call fails. 0 waits as long as timeout_seconds allows.summary?optionalstringSingle-line description shown against the operation in the Temporal UI.resultstringThe operation’s result as a JSON string. Decode it with json.decode; decoding in Starlark keeps an integer an int rather than a float.