Expand description
Internal implementation crate for OxideBatch.
This crate is implementation detail. Use
oxide-batch instead.
It exists on crates.io only because the published oxide-batch facade
depends on it. Its API carries no stability promise: items may be added,
changed, or removed in any release, without a deprecation period. It has no
supported-configuration matrix, no compatibility ledger row, and no
independent release cadence.
Everything here that OxideBatch supports is re-exported from oxide-batch
under a stable path.
The crate holds domain identities, typed job parameters, statuses and exit
statuses, execution records and their lifecycle rules, bounded versioned
execution-context and checkpoint state, chunk sizing and counting values,
and restart-relevant definition identity with its canonical manifest
encoding. It depends on no async runtime, database driver, command-line
framework, telemetry SDK, broker client, or web framework, and on no other
OxideBatch crate.
Macros§
- definition_
token - Declares one validated, application-owned definition token type.
Structs§
- Backoff
Policy - A deterministic, jitter-free backoff schedule.
- Checkpoint
- A bounded, versioned reader position committed with a chunk.
- Chunk
Component Revisions - Component revisions for a one-step chunk definition.
- Chunk
Count - A checked non-negative item or transaction count.
- Chunk
Counts - Validated item counts within one open chunk.
- Chunk
Progress - Mutable, invariant-preserving progress for one bounded chunk.
- Chunk
Restart Contract - Restart-state schemas and delivery mode for a chunk definition.
- Chunk
Size - A nonzero item limit for one chunk.
- Classifier
Revision - An application-owned revision token for one bounded fault classifier.
- Component
Revision - An application-owned revision token for one opaque executable component.
- Definition
Identity - Canonical restart-relevant identity persisted with every execution.
- Definition
Manifest - A validated, read-only view of one canonical definition manifest.
- Definition
Revision - An application-owned audit label for one restart-relevant definition.
- Definition
Upgrade - One explicit, directed definition compatibility edge.
- Definition
Upgrade Key - An application-owned key for one directed definition compatibility edge.
- Execution
Context - Bounded, versioned application restart state committed with a chunk.
- Execution
Counts - Durable item and transaction counters for an execution.
- Execution
Metadata - Validated lifecycle, outcome, timestamps, counters, and failure metadata.
- Execution
Timestamps - Validated creation, start, and end instants for an execution attempt.
- Execution
Version - A database-agnostic optimistic-lock version for an execution record.
- Exit
Code - A validated flow- and operator-facing exit code.
- Exit
Status - A flow- and operator-facing result kept separate from
BatchStatus. - Failure
Id - An opaque identifier used to correlate a redacted failure.
- Failure
Summary - A value-redacted failure summary suitable for execution inspection.
- Fault
Action - The action a classifier rule declares for one phase and category.
- Fault
Classifier - A bounded, order-independent classifier over phases and categories.
- Fault
Descriptor - The complete framework-owned classification input for one fault.
- Fault
Evidence - Framework evidence about one failed unit of work.
- Fault
Policy - The validated retry, backoff, skip, and rollback policy for one step.
- Fault
Rule - One ordered classifier rule for an exact phase and category.
- JobExecution
- One launch or restart attempt for a
JobInstance. - JobExecution
Id - An opaque identifier for one job launch or restart attempt.
- JobInstance
- One logical occurrence of a named job and its identifying parameters.
- JobInstance
Id - An opaque identifier for one logical job instance.
- JobInstance
Key - The canonical identity key for a logical job instance.
- JobName
- A validated logical job-definition name.
- JobParameter
- One typed job parameter and its identity role.
- JobParameters
- A deterministically ordered set of typed job parameters.
- Lifecycle
Transition - A requested framework lifecycle transition and its deterministic timestamp.
- NodeId
- A stable logical identifier for one flow-graph node.
- Operator
Request Id - An opaque identifier for one append-only operator request record.
- Parameter
Name - A validated job-parameter name.
- Parameter
Value - A bounded typed job-parameter value.
- Recovery
Decision Id - An opaque identifier for one append-only recovery decision.
- Retention
Action Id - An opaque identifier for one append-only retention audit record.
- Retry
Limit - The maximum number of re-invocations after the initial component call.
- Retry
Ordinal - The zero-based invocation ordinal for one retry key.
- Retry
State Limit - The maximum number of unresolved retry keys retained for one step.
- Skip
Counts - Durable committed skip counts, kept distinct per phase.
- Skip
Limit - The maximum aggregate committed skips for one step in one job instance.
- Start
Controls - Restart-relevant start controls for one logical step.
- Start
Limit - The maximum number of step executions one logical step may start.
- State
Limits - Resource bounds checked before application payload decoding.
- State
Schema Id - A validated application-owned durable-state schema identifier.
- State
Schema Upgrade - One directed application-schema upgrade a codec declares.
- State
Schema Version - A nonzero application schema version.
- Step
Definition Upgrade - One source-to-target durable step mapping for a compatible restart.
- Step
Execution - One attempt to execute a named step within a job execution.
- Step
Execution Id - An opaque identifier for one step attempt.
- Step
Name - A validated logical step-definition name.
- Step
Partition Id - An opaque identifier for one durable step partition.
Enums§
- Backoff
Kind - The deterministic backoff family selected by a definition.
- Batch
Status - The framework lifecycle status of a job or step execution.
- Chunk
Delivery Mode - Declared delivery boundary included in a chunk definition fingerprint.
- Chunk
Error - Stable chunk-size and count failure.
- Definition
Error - Failure to construct a bounded restart definition.
- Definition
Token Kind - Definition token category used by validation diagnostics.
- Domain
Error - A stable, value-redacted domain validation failure.
- Durable
State Kind - The durable state category being encoded or decoded.
- Failure
Category - A stable framework category for a redacted failure.
- Fault
Decision - The authoritative policy outcome for one fault.
- Fault
Phase - The framework phase that produced a fault.
- Fault
Policy Error - A value-redacted fault-policy validation or arithmetic failure.
- Flow
Target - The destination one transition selects.
- Identifier
Kind - The kind of opaque numeric identifier.
- InFlight
Policy - The accepted shutdown behavior for an already-open chunk.
- Lifecycle
Error - A typed lifecycle-policy or optimistic-concurrency failure.
- Manifest
Error - A canonical definition manifest that cannot be interpreted.
- Name
Kind - The kind of validated domain name.
- Parameter
Role - Whether a job parameter participates in job-instance identity.
- Parameter
Value Kind - The stable type discriminator for a
ParameterValue. - Rollback
Disposition - How a failed unit of work is separated from committed work.
- State
Codec Error - Stable, payload-redacted failures returned by an application codec.
- State
Error - Stable, value-redacted durable-state validation failure.
- Terminal
Kind - A node that ends the job without starting further work.
Constants§
- MANIFEST_
FORMAT_ FLOW - The canonical manifest format that captures a compiled flow graph.
- MANIFEST_
FORMAT_ LOCAL_ SCALE - The canonical manifest format for bounded M4 local-scale plans.
- MANIFEST_
FORMAT_ ONE_ STEP - The canonical manifest format for a one-step tasklet or chunk definition.
- MAX_
NODES - The maximum number of nodes one plan may contain.
- MAX_
PARTITIONS - The maximum number of durable local partitions in one partitioned step.
- MAX_
TRANSITIONS - The maximum number of transitions one plan may contain.
Traits§
- Versioned
State Codec - Serializer-neutral application codec for one durable-state schema.
Functions§
- check_
manifest_ format - Returns whether this runtime can interpret
format. - validate_
token - Validates one application-owned definition token.