Expand description
State codes for the accessor-init worker, written to the
SnapshotBridge::accessor_worker_state atomic. Two-bit
encoding leaves the high bits open for future sub-states (e.g.
“shutting down”).
Constants§
- FAILED_
PERMANENTLY - Worker has exited and will not publish again — ELF parse failure, the 60 s boot-budget deadline, or some other terminal condition the worker detected. A dispatcher seeing this on a timeout knows to surface “worker exited” rather than “still trying.”
- SUCCEEDED
- Worker has published at least one accessor pair successfully. Subsequent re-inits also publish via this transition (the state stays SUCCEEDED while the seqno bumps).
- TRYING
- Worker is in its retry loop trying to initialize the BPF accessor pair. Both initial-attach and post-swap re-init path through this state before reaching Succeeded.