Skip to main content

BootFlowTaskManager

Struct BootFlowTaskManager 

Source
pub struct BootFlowTaskManager { /* private fields */ }
Expand description

A3S Boot-backed task manager for Flow scheduler and callback dispatch.

Boot owns queue processors, worker lifecycle, leasing, job state, and shutdown. Flow owns only task serialization and engine handling semantics.

Implementations§

Source§

impl BootFlowTaskManager

Source

pub fn new(engine: FlowEngine, queue: Arc<Queue>) -> Self

Creates a manager for one engine and Boot queue.

Source

pub fn with_job_name(self, job_name: impl Into<String>) -> Result<Self>

Replaces the Boot processor job name.

Source

pub fn with_task_policy(self, task_policy: BootFlowTaskPolicy) -> Result<Self>

Replaces and validates the shared task policy.

Source

pub fn engine(&self) -> &FlowEngine

Returns the Flow engine used by the registered processor.

Source

pub fn queue(&self) -> Arc<Queue>

Returns the backing Boot queue.

Source

pub fn job_name(&self) -> &str

Returns the registered Boot job name.

Source

pub fn task_policy(&self) -> &BootFlowTaskPolicy

Returns the shared Flow task policy.

Source

pub fn job_options_for(&self, task: &FlowTask) -> QueueJobOptions

Build the concrete Boot options that this manager will use for task.

Hosts can add a caller-assigned job ID or other one-off Boot option and pass the result to Self::enqueue_with_options.

Source

pub fn register(&self) -> Result<()>

Register the Flow task processor with the Boot queue.

The host still starts and stops the queue through QueueModule or the corresponding Queue::start and Queue::shutdown lifecycle calls.

Source

pub async fn enqueue_with_receipt( &self, task: FlowTask, ) -> Result<QueueJobReceipt>

Enqueues one task and returns its Boot job receipt.

Source

pub async fn enqueue_with_options( &self, task: FlowTask, options: QueueJobOptions, ) -> Result<QueueJobReceipt>

Enqueue one task with explicit typed A3S Boot job options.

This per-submission entrypoint supports caller-assigned job IDs and the complete QueueJobOptions surface. Scheduler dispatch through FlowTaskDispatcher uses this manager’s BootFlowTaskPolicy.

Trait Implementations§

Source§

impl Clone for BootFlowTaskManager

Source§

fn clone(&self) -> BootFlowTaskManager

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BootFlowTaskManager

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FlowTaskDispatcher for BootFlowTaskManager

Source§

fn dispatch<'life0, 'async_trait>( &'life0 self, task: FlowTask, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dispatches one Flow task to the configured execution route.
Source§

fn has_runtime_build_route( &self, required_build_id: Option<&RuntimeBuildId>, ) -> bool

Return whether this dispatcher has an explicit compatible route.
Source§

fn ensure_runtime_build_route( &self, required_build_id: Option<&RuntimeBuildId>, ) -> Result<()>

Fail before dispatch when no compatible route is registered.
Source§

fn dispatch_for_runtime_build<'life0, 'life1, 'async_trait>( &'life0 self, required_build_id: Option<&'life1 RuntimeBuildId>, task: FlowTask, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dispatch to a route that explicitly serves required_build_id. 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SqlComparable<Option<T>> for T

Source§

impl<T> SqlComparable<T> for T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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<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