pub struct ChainJobRunnerHandle { /* private fields */ }Implementations§
Source§impl ChainJobRunnerHandle
impl ChainJobRunnerHandle
Sourcepub fn request_cancel(&self, job_id: &str) -> bool
pub fn request_cancel(&self, job_id: &str) -> bool
Mark cancel-requested; false when the job is unknown to the registry.
pub fn unregister_cancel(&self, job_id: &str)
pub async fn lock_job(&self, job_id: &str) -> OwnedMutexGuard<()>
pub fn remove_job_lock(&self, job_id: &str)
pub async fn request_gc(&self) -> Result<GcOutcome>
pub fn cleanup_deleted(&self, job_id: &str)
pub fn publish_settled_state( &self, job_id: &str, state: ChainJobState, error: Option<String>, )
Sourcepub fn subscribe(
&self,
db: &MetadataDb,
job_id: &str,
) -> Result<Receiver<ChainJobEvent>>
pub fn subscribe( &self, db: &MetadataDb, job_id: &str, ) -> Result<Receiver<ChainJobEvent>>
SSE attach: MUST be called BEFORE snapshot synthesis (buffered duplicates arriving after Snapshot are the correct side of the race; clients apply idempotently). Lagged receivers re-attach -> fresh Snapshot.
Auto Trait Implementations§
impl Freeze for ChainJobRunnerHandle
impl RefUnwindSafe for ChainJobRunnerHandle
impl Send for ChainJobRunnerHandle
impl Sync for ChainJobRunnerHandle
impl Unpin for ChainJobRunnerHandle
impl UnsafeUnpin for ChainJobRunnerHandle
impl UnwindSafe for ChainJobRunnerHandle
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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