End Component
The<End> component explicitly terminates orchestration and captures a structured summary of the run.
Basic Usage
Props
Structured summary of the run. Can be a static object or a function that returns one (sync or async).
Process exit code.
Optional reason for ending. Defaults to “success” or “failure” based on status.
EndSummary Type
Examples
Success with Metrics
Dynamic Summary from State
Conditional End
Behavior
When rendered, the End component:- Evaluates the summary (sync or async)
- Stores the summary in the
executionstable - Calls
requestStop()to halt the Ralph loop - Process exits with the specified exit code