Commit
Synopsis
Finalizes staged routes created by the reroute processor with staging: true, moving events from the staging area to their designated destinations.
Schema
- commit:
destination: <string>
description: <text>
if: <script>
ignore_failure: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
| Field | Required | Default | Description |
|---|---|---|---|
destination | N | - | Specific destination to commit. If omitted, commits all staged routes. |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
The commit processor works with the reroute processor to enable multi-tier pipeline architectures. When reroute uses staging: true, events are held in a staging area instead of being delivered immediately. The commit processor finalizes those staged routes.
Staged Route Behavior:
- Staged routes are stored in a map keyed by destination name
- Multiple staged routes to the same destination overwrite previous versions
- Only the final staged version for each destination is committed
- Without commit, staged routes are discarded at pipeline end
Commit Modes:
- Commit all: When
destinationis omitted, all staged routes are committed - Commit specific: When
destinationis specified, only that destination is committed
Error Handling:
- Returns error if specified
destinationis not found in staged routes - Use
ignore_failure: trueto continue processing when destination not found - Empty staging area with no destination specified succeeds silently
This pattern enables progressive normalization where data passes through multiple transformation stages, with only the final, most-normalized version delivered to each destination. See Multi-Tier Pipelines for detailed patterns.
Examples
Commit All Staged Routes
Committing all staged routes after multi-tier processing... | |
Both archive and sentinel receive their respective formats... |
Commit Specific Destination
Committing only a specific destination... | |
Sentinel receives data immediately, lake receives enriched data later... |
Staged Route Override
Progressive normalization with automatic override... | |
Only the final ASIM version reaches sentinel... |
Conditional Commit
Committing based on validation results... | |
Valid events go to sentinel, invalid to quarantine... |
Error Handling
Handling missing destination gracefully... | |
Processing continues with error captured... | |