> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# temporal

**Experimental.** For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Provides workflow identity helpers, scheduling, event entrypoints and host workflow cancellation.

### Prerequisites

* None.

### Setup

* Loads automatically; no configuration needed.

This module provides functionality for interacting with Temporal.

## Members

* [cancel_host_workflows](#cancel_host_workflows)
* [hostname](#hostname)
* [on_circuit_breaker_toggled](#on_circuit_breaker_toggled)
* [on_workflow_toggle](#on_workflow_toggle)
* [run_id](#run_id)
* [schedule](#schedule)
* [url](#url)
* [workflow_id](#workflow_id)

## cancel_host_workflows

Cancel running script workflows for a single host. Matches by the Hostname search attribute (workflows started without it are skipped) and triggers on_cancel handlers. Can only be called from within a Temporal workflow.

Target hostname (e.g., 'node-001').

Only cancel workflows from this script (e.g., 'breakfix.star'). Empty cancels all matching workflows.

If true, skip the calling workflow even if its ID matches the hostname. Prevents accidental self-cancellation.

Max total time for on_cancel handlers to finish, parallel (e.g. '30s', '5m', '72h'). Use '0' for fire-and-forget.

List of workflow IDs that were cancelled. Use len() for the count.

## hostname

Gets the hostname of the Remediation Orchestrator instance. This is configured via the MAESTRO_HOSTNAME environment variable.

The hostname of the Remediation Orchestrator instance.

## on_circuit_breaker_toggled

Register a callback workflow to be launched when a circuit breaker trips or resets. Cannot be called from within a Temporal workflow.

The name of the entrypoint

The workflow object to register the entrypoint for

The script name to monitor for circuit breaker state changes (e.g., 'monitoring.star'). Leave empty to monitor all scripts.

The workflow name to monitor for circuit breaker state changes (e.g., 'health_check'). Leave empty to monitor all workflows.

The arguments to pass to the workflow.

## on_workflow_toggle

Register a callback workflow to be launched when a workflow is enabled or disabled through the Remediation Orchestrator UI. Cannot be called from within a Temporal workflow.

The name of the entrypoint

The workflow object to register the entrypoint for

The script name to monitor for workflow toggles (e.g., 'monitoring.star'). Leave empty to monitor all scripts.

The workflow name to monitor for toggles (e.g., 'health_check'). Leave empty to monitor all workflows.

The arguments to pass to the workflow.

## run_id

Gets the run ID of the current workflow. Can only be called from within a Temporal workflow.

The run ID.

## schedule

Creates a Temporal schedule for a workflow. Cannot be called from within a Temporal workflow. Polling schedules should set overlap='skip' and a finite catchup_window.

The name of the schedule. This will be used in the Temporal schedule ID.

The workflow object to schedule.

The cron expressions to schedule the workflow with.

The arguments to pass to the workflow.

If true, runs started by this schedule are flagged skip_indexing=true: the indexer does not pull events into script_workflow_events and the run uses the shorter SkippedWorkflowRetention. Use for high-frequency internal schedules whose per-run history is not needed in the workflow runs dashboard. Defaults to false.

Overlap policy. Empty preserves the existing default; 'skip' prevents a new run while the prior run is active.

Finite duration in which a missed action may catch up. Empty preserves the existing default.

The schedule object.

## url

Gets the URL to the Temporal UI for the current workflow. Can only be called from within a Temporal workflow.

The URL to the Temporal UI.

## workflow_id

Gets the ID of the current workflow. Can only be called from within a Temporal workflow.

The workflow ID.