DAG Finally
AI-generatedSummary
Mark the final status of a DAG branch and add optional cleanup metadata, always running at the end of the specified branch.
Inputs
- Branch Label (required) — String identifier matching the corresponding DagTry node's Branch Label; used to associate the final status with the correct branch.
- Mark Status (required) — Option to automatically detect the success or failure status or forcibly mark the branch as 'success' or 'failed'.
- Cleanup Note — Optional human-readable note added to the execution log for context or comments during cleanup.
Output shape
a list of items each including the original data plus added metadata fields: '_dagBranchLabel' with the branch label string, '_dagStatus' with the final status ('completed' or 'failed'), '_dagFinallyRan' set to true, '_dagCleanupNote' with the cleanup note, and '_dagTimestamp' with the ISO timestamp of execution.
The final status is determined by forced status if specified; otherwise, it infers failure from prior _dagStatus values like 'try_failed', 'catch_failed', 'failed', 'timeout', or 'skipped', defaulting to 'completed' if none match. Outputs preserve original item structure and binary data.
Examples
Example 1: Use in a DAG branch to ensure final cleanup or marking after the branch's try/catch logic completes.
Set 'Branch Label' to the label used in the corresponding DagTry node; choose 'Mark Status' as 'auto' to detect finish state or force 'success' or 'failed'; optionally add a cleanup note.