pub enum RunEvent {
Show 13 variants
PlanResolved(PlanSnapshot),
PlanWarning {
rule: String,
message: String,
},
FileWritten {
file_name: String,
rows: i64,
bytes: u64,
part_index: usize,
},
ChunkStarted {
chunk_index: i64,
start_key: String,
end_key: String,
},
ChunkCompleted {
chunk_index: i64,
rows: i64,
file_name: Option<String>,
},
ChunkFailed {
chunk_index: i64,
error: String,
attempt: i64,
},
RetryAttempted {
attempt: u32,
reason: String,
backoff_ms: u64,
},
QualityIssue {
severity: String,
message: String,
},
SchemaChanged {
added: Vec<String>,
removed: Vec<String>,
type_changed: Vec<(String, String, String)>,
},
Warning {
context: String,
message: String,
},
ValidationResult {
passed: bool,
},
ReconciliationResult {
source_count: i64,
exported_rows: i64,
matched: bool,
},
RunCompleted {
status: String,
error_message: Option<String>,
duration_ms: i64,
},
}Expand description
A single typed event emitted during a pipeline run.
Variants are grouped by DoD question:
- Planned —
PlanResolved,PlanWarning - Happened —
FileWritten,ChunkStarted,ChunkCompleted,ChunkFailed,RetryAttempted - Degraded —
QualityIssue,SchemaChanged,Warning - Succeeded —
ValidationResult,ReconciliationResult - Outcome —
RunCompleted
Variants§
PlanResolved(PlanSnapshot)
Emitted once at the start of a run with a snapshot of the resolved plan.
PlanWarning
A plan validation diagnostic at Warning or Degraded level.
FileWritten
One output file was successfully written to the destination.
ChunkStarted
A chunk task transitioned from pending to running.
ChunkCompleted
A chunk task completed successfully.
ChunkFailed
A chunk task failed (may be retried up to max_chunk_attempts).
RetryAttempted
The pipeline is about to retry after a transient error.
QualityIssue
One quality rule fired (severity: "FAIL" or "WARN").
SchemaChanged
The output schema differs from the previously stored snapshot.
Fields
Warning
A non-fatal warning that does not fit another variant.
ValidationResult
Output file row-count validation completed.
ReconciliationResult
Source COUNT(*) reconciliation completed.
RunCompleted
Terminal event — the run has reached its final state.