Skip to main content

PendingWaitpointInfo

Struct PendingWaitpointInfo 

Source
pub struct PendingWaitpointInfo {
    pub waitpoint_id: WaitpointId,
    pub waitpoint_key: String,
    pub state: String,
    pub waitpoint_token: WaitpointToken,
    pub required_signal_names: Vec<String>,
    pub created_at: TimestampMs,
    pub activated_at: Option<TimestampMs>,
    pub expires_at: Option<TimestampMs>,
}
Expand description

One entry in the read-only view of an execution’s active waitpoints.

Returned by Server::list_pending_waitpoints (and the GET /v1/executions/{id}/pending-waitpoints REST endpoint). The waitpoint_token is the same HMAC-SHA1 credential a suspending worker receives in SuspendOutcome::Suspended — a reviewer that needs to deliver a signal against this waitpoint must present it in DeliverSignalArgs::waitpoint_token.

Exposing the token here is a deliberate API gap closure: a human-in-the-loop reviewer has no other path to the token, since only the suspending worker sees the SuspendOutcome. Access is gated by the same bearer-auth middleware as every other REST endpoint.

Fields§

§waitpoint_id: WaitpointId§waitpoint_key: String§state: String

Current waitpoint state: pending, active, closed. Callers typically filter to pending or active.

§waitpoint_token: WaitpointToken

HMAC-SHA1 token minted at create time; required by ff_deliver_signal and ff_buffer_signal_for_pending_waitpoint.

§required_signal_names: Vec<String>

Signal names the resume condition is waiting for. Reviewers that need to drive a specific waitpoint — particularly when multiple concurrent waitpoints exist on one execution — filter on this to pick the right target.

An EMPTY vec means the condition matches any signal (wildcard, per lua/helpers.lua initialize_condition). Callers must not infer “no waitpoint” from empty; check state / length of the outer list for that.

§created_at: TimestampMs

Timestamp when the waitpoint record was first written.

§activated_at: Option<TimestampMs>

Timestamp when the waitpoint was activated (suspension landed). None while the waitpoint is still pending.

§expires_at: Option<TimestampMs>

Scheduled expiration timestamp. None if no timeout configured.

Trait Implementations§

Source§

impl Clone for PendingWaitpointInfo

Source§

fn clone(&self) -> PendingWaitpointInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PendingWaitpointInfo

Source§

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

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

impl<'de> Deserialize<'de> for PendingWaitpointInfo

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for PendingWaitpointInfo

Source§

fn eq(&self, other: &PendingWaitpointInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for PendingWaitpointInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for PendingWaitpointInfo

Source§

impl StructuralPartialEq for PendingWaitpointInfo

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, 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> 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 = 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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,