pub struct OpenAsk {
pub ask_id: u64,
pub attempt: u32,
pub question: String,
pub options: Vec<String>,
pub default: String,
pub idempotency_key: String,
pub asked_at: Timestamp,
pub expires_at: Timestamp,
pub escalated_at: Option<Timestamp>,
pub escalation_note: Option<String>,
}Expand description
A worker’s open blocking question to its parent, projected from
node.asked. The id is the seq of that event, so an answer addressed to an
older question can never close a newer one.
Fields§
§ask_id: u64seq of the node.asked event.
attempt: u32Worker attempt that asked.
question: StringThe question, as the worker wrote it.
options: Vec<String>Optional named choices; an answer may pick one with --choice.
default: StringWhat the worker does when nobody answers before expires_at.
idempotency_key: StringThe worker’s idempotency key; re-asking with it re-attaches.
asked_at: TimestampEnvelope timestamp of node.asked.
expires_at: TimestampDeadline, fixed from asked_at + the requested timeout and moved only
later, by node.ask_escalated.
escalated_at: Option<Timestamp>Set when the parent passed the question on to a person
(node.ask_escalated). An escalated question no longer settles the
parent’s run wait.
escalation_note: Option<String>The parent’s latest escalation note, if it gave one.