> 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.

# childworkflow

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

Launches and tracks child workflows within a tenant.

### Prerequisites

* Active child workflow script in the same tenant.

### Setup

* Loads automatically; no configuration needed.
* See the [child workflow guide](https://github.com/dsx-ai-factory/remediation-orchestrator/blob/1785e695a8bff76c910115b3c96398a5a59a7183/modules/childworkflows/MODULE_DOCUMENTATION.md) for registering and launching child workflows.

Launch child workflows. Returns a handle that can be awaited directly via get() or used as an event source with patterns.select().

## Members

* [ParentClosePolicy](#parentclosepolicy)
* [run_workflow](#run_workflow)

## ParentClosePolicy

Temporal policies controlling a child when its parent closes.

## run_workflow

Launch a child workflow. Returns immediately with a handle. Call handle.get() to block for the result, or use the handle as a key in patterns.select() for event-driven composition.

Registered Remediation Orchestrator script containing the workflow.

Starlark function name to invoke in the child script.

Arguments dict passed to the child workflow function.

Explicit Temporal workflow ID. If empty, uses the workflow's id_function or generates one.

If true, use a disconnected workflow context so parent-context cancellation, including REPL cell exit, does not propagate to the child. The parent_close_policy still applies when the parent closes. To survive both, use detached=True with ParentClosePolicy.ABANDON.

A childworkflow\.ParentClosePolicy value applied to a running child after its parent closes, including completion, failure, cancellation, or termination. Applies even when detached=True. ABANDON does not prevent cancellation through an attached parent context. Omitted or unsupported values use ABANDON.

ChildWorkflowHandle with get() method and patterns.select() compatibility.