Skip to main content

EngineConfig

Struct EngineConfig 

Source
pub struct EngineConfig {
Show 17 fields pub partition_config: PartitionConfig, pub lanes: Vec<LaneId>, pub lease_expiry_interval: Duration, pub delayed_promoter_interval: Duration, pub index_reconciler_interval: Duration, pub attempt_timeout_interval: Duration, pub suspension_timeout_interval: Duration, pub pending_wp_expiry_interval: Duration, pub retention_trimmer_interval: Duration, pub budget_reset_interval: Duration, pub budget_reconciler_interval: Duration, pub quota_reconciler_interval: Duration, pub unblock_interval: Duration, pub dependency_reconciler_interval: Duration, pub completion_listener: Option<CompletionListenerConfig>, pub flow_projector_interval: Duration, pub execution_deadline_interval: Duration,
}
Expand description

Engine configuration.

Fields§

§partition_config: PartitionConfig§lanes: Vec<LaneId>

Lanes to scan for delayed/index operations. Phase 1: ["default"].

§lease_expiry_interval: Duration

Lease expiry scan interval. Default: 1.5s.

§delayed_promoter_interval: Duration

Delayed promoter scan interval. Default: 750ms.

§index_reconciler_interval: Duration

Index reconciler scan interval. Default: 45s.

§attempt_timeout_interval: Duration

Attempt timeout scan interval. Default: 2s.

§suspension_timeout_interval: Duration

Suspension timeout scan interval. Default: 2s.

§pending_wp_expiry_interval: Duration

Pending waitpoint expiry scan interval. Default: 5s.

§retention_trimmer_interval: Duration

Retention trimmer scan interval. Default: 60s.

§budget_reset_interval: Duration

Budget reset scan interval. Default: 15s.

§budget_reconciler_interval: Duration

Budget reconciler scan interval. Default: 30s.

§quota_reconciler_interval: Duration

Quota reconciler scan interval. Default: 30s.

§unblock_interval: Duration

Unblock scanner interval. Default: 5s.

§dependency_reconciler_interval: Duration

Dependency reconciler interval. Default: 15s.

Post-Batch-C this scanner is a safety net, not the primary promotion path. The completion_listener SUBSCRIBEs to ff:dag:completions and dispatches dependency resolution synchronously with each completion — under normal operation, DAG latency is ~RTT × levels, not interval × levels.

The reconciler still runs as a catch-all for:

  • messages missed during listener restart or reconnect;
  • pre-Batch-C executions without core.flow_id stamped;
  • operator-driven edge mutation that doesn’t pass through the terminal-transition publish path.

15s idle-scan cost is minimal. If the listener is disabled (completion_listener = None), drop this to 1s to preserve pre-Batch-C DAG latency behavior.

§completion_listener: Option<CompletionListenerConfig>

Optional push-based DAG promotion listener (Batch C item 6). When Some, the engine spawns a completion_listener task that SUBSCRIBEs to ff:dag:completions on a dedicated RESP3 client and dispatches dependency resolution per completion.

None disables the listener entirely — the reconciler alone promotes. Useful for lightweight single-node deployments or test harnesses that don’t care about DAG latency.

§flow_projector_interval: Duration

Flow summary projector interval. Default: 15s.

Separate observability projection path — maintains the flow summary view, NOT on the DAG-completion latency path. Kept at 15s in this config; a change to that cadence is unrelated to dependency resolution.

§execution_deadline_interval: Duration

Execution deadline scanner interval. Default: 5s.

Trait Implementations§

Source§

impl Default for EngineConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more