Skip to main content

start_time_task_queue

Function start_time_task_queue 

Source
pub fn start_time_task_queue(events: &[Event]) -> Option<String>
Expand description

The task queue a workflow was STARTED on, projected from recorded history.

Reads the START_TIME_TASK_QUEUE_ATTRIBUTE search attribute folded from the run’s Event::SearchAttributesUpdated events (the server records it in the same append as Event::WorkflowStarted). Returns None when the start recorded no task-queue selection — a legacy history, or a start that left the queue unset — so callers fall back to the named DEFAULT_TASK_QUEUE.

Because the value is read purely from recorded history (never from live or wall-clock state), it is replay-deterministic: the same history always projects the same start-time queue.