pub struct PostgresExplorer { /* private fields */ }Expand description
The bounded keyset read port of PostgresJobRepository.
Each page is one statement executed under the configured statement timeout and the adapter’s ordinary read committed isolation. No page takes a lock or participates in a chunk transaction, and cross-page snapshot isolation is not provided.
The unresolved-execution age bound compares the durable updated_at column
against repository server time. It never consults the inspecting process’s
wall clock and never updates a row.
Implementations§
Source§impl PostgresExplorer
impl PostgresExplorer
Sourcepub const fn new(repository: PostgresJobRepository) -> Self
pub const fn new(repository: PostgresJobRepository) -> Self
Binds one durable repository to the bounded read port.
Trait Implementations§
Source§impl Clone for PostgresExplorer
impl Clone for PostgresExplorer
Source§fn clone(&self) -> PostgresExplorer
fn clone(&self) -> PostgresExplorer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgresExplorer
impl Debug for PostgresExplorer
Source§impl ExplorerRepository for PostgresExplorer
impl ExplorerRepository for PostgresExplorer
Source§fn identity_ceiling<'a>(
&'a self,
query: &'a ExplorerQuery,
) -> BoxFuture<'a, Result<u64, ExplorerError>>
fn identity_ceiling<'a>( &'a self, query: &'a ExplorerQuery, ) -> BoxFuture<'a, Result<u64, ExplorerError>>
Captures the exclusive identity ceiling for one traversal.
Source§fn job_names<'a>(
&'a self,
window: &'a QueryWindow,
) -> BoxFuture<'a, Result<Vec<JobName>, ExplorerError>>
fn job_names<'a>( &'a self, window: &'a QueryWindow, ) -> BoxFuture<'a, Result<Vec<JobName>, ExplorerError>>
Reads registered job names in byte order.
Source§fn instances<'a>(
&'a self,
job_name: &'a JobName,
window: &'a QueryWindow,
) -> BoxFuture<'a, Result<Vec<JobInstanceProjection>, ExplorerError>>
fn instances<'a>( &'a self, job_name: &'a JobName, window: &'a QueryWindow, ) -> BoxFuture<'a, Result<Vec<JobInstanceProjection>, ExplorerError>>
Reads instances of one job name, newest identity first.
Source§fn executions<'a>(
&'a self,
job_instance_id: JobInstanceId,
window: &'a QueryWindow,
) -> BoxFuture<'a, Result<Vec<JobExecutionProjection>, ExplorerError>>
fn executions<'a>( &'a self, job_instance_id: JobInstanceId, window: &'a QueryWindow, ) -> BoxFuture<'a, Result<Vec<JobExecutionProjection>, ExplorerError>>
Reads executions of one instance, newest attempt first.
Source§fn execution(
&self,
job_execution_id: JobExecutionId,
) -> BoxFuture<'_, Result<Option<JobExecutionProjection>, ExplorerError>>
fn execution( &self, job_execution_id: JobExecutionId, ) -> BoxFuture<'_, Result<Option<JobExecutionProjection>, ExplorerError>>
Reads one execution projection.
Source§fn step_executions<'a>(
&'a self,
job_execution_id: JobExecutionId,
window: &'a QueryWindow,
) -> BoxFuture<'a, Result<Vec<StepExecutionProjection>, ExplorerError>>
fn step_executions<'a>( &'a self, job_execution_id: JobExecutionId, window: &'a QueryWindow, ) -> BoxFuture<'a, Result<Vec<StepExecutionProjection>, ExplorerError>>
Reads step executions of one job execution.
Source§fn unresolved_executions<'a>(
&'a self,
minimum_age: Duration,
window: &'a QueryWindow,
) -> BoxFuture<'a, Result<Vec<JobExecutionProjection>, ExplorerError>>
fn unresolved_executions<'a>( &'a self, minimum_age: Duration, window: &'a QueryWindow, ) -> BoxFuture<'a, Result<Vec<JobExecutionProjection>, ExplorerError>>
Reads non-terminal executions older than
minimum_age.Source§fn recovery_decisions<'a>(
&'a self,
job_execution_id: JobExecutionId,
window: &'a QueryWindow,
) -> BoxFuture<'a, Result<Vec<RecoveryDecision>, ExplorerError>>
fn recovery_decisions<'a>( &'a self, job_execution_id: JobExecutionId, window: &'a QueryWindow, ) -> BoxFuture<'a, Result<Vec<RecoveryDecision>, ExplorerError>>
Reads recovery decisions of one job execution.
Source§fn flow_decisions<'a>(
&'a self,
job_execution_id: JobExecutionId,
window: &'a QueryWindow,
) -> BoxFuture<'a, Result<Vec<FlowDecision>, ExplorerError>>
fn flow_decisions<'a>( &'a self, job_execution_id: JobExecutionId, window: &'a QueryWindow, ) -> BoxFuture<'a, Result<Vec<FlowDecision>, ExplorerError>>
Reads flow decisions of one job execution in sequence order.
Source§fn step_partitions<'a>(
&'a self,
step_execution_id: StepExecutionId,
window: &'a QueryWindow,
) -> BoxFuture<'a, Result<Vec<StepPartitionProjection>, ExplorerError>>
fn step_partitions<'a>( &'a self, step_execution_id: StepExecutionId, window: &'a QueryWindow, ) -> BoxFuture<'a, Result<Vec<StepPartitionProjection>, ExplorerError>>
Reads partitions of one partitioned step execution.
Source§fn operator_requests<'a>(
&'a self,
job_execution_id: JobExecutionId,
window: &'a QueryWindow,
) -> BoxFuture<'a, Result<Vec<OperatorRecord>, ExplorerError>>
fn operator_requests<'a>( &'a self, job_execution_id: JobExecutionId, window: &'a QueryWindow, ) -> BoxFuture<'a, Result<Vec<OperatorRecord>, ExplorerError>>
Reads audited operator requests for one job execution.
Source§impl RecoveryRepository for PostgresExplorer
impl RecoveryRepository for PostgresExplorer
Source§fn recovery_snapshot<'a>(
&'a self,
execution_id: JobExecutionId,
current_owner: &'a OwnerToken,
) -> BoxFuture<'a, Result<RecoverySnapshot, RepositoryError>>
fn recovery_snapshot<'a>( &'a self, execution_id: JobExecutionId, current_owner: &'a OwnerToken, ) -> BoxFuture<'a, Result<RecoverySnapshot, RepositoryError>>
Reads one value-redacted snapshot without changing durable state.
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresExplorer
impl !UnwindSafe for PostgresExplorer
impl Freeze for PostgresExplorer
impl Send for PostgresExplorer
impl Sync for PostgresExplorer
impl Unpin for PostgresExplorer
impl UnsafeUnpin for PostgresExplorer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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