Skip to main content

Module classify

Module classify 

Source
Expand description

Event classification. The kernel routes on the header alone; it never parses a payload to decide what an event means.

Enums§

Class
How prepare_event routes an event, decided from the header alone.

Constants§

CANCEL_STEP_ID
Step id of the run-level cancel marker.
COMPLETE_STEP_ID
Step id of the marker a complete command writes.
CONTINUE_STEP_ID
Step id of the marker a continue_as_new command writes.
FAIL_STEP_ID
Step id of the marker the host writes when a reducer throws (WorkflowFailure).
NONDETERMINISM_STEP_ID
Step id of the nondeterminism marker written by the re-fold check.
TIMEOUT_SUFFIX
Suffix of the deadline timer an await_signal with timeout_ms reserves beside its signal step: signal x races timer x:timeout. Whichever settles first closes the other as cancelled, so the reducer only ever sees the winner.

Functions§

classify
Route an event by kind, status and, for markers, step_id.
timeout_owner
The signal step a <id>:timeout timer is paired with, or None when step_id does not carry the suffix. The caller still checks that a signal step of that id is open.
timeout_step_id
Step id of the deadline timer paired with signal step step_id.