Expand description
Independent conversation execution, publication fencing and restart recovery.
These workers belong to persisted conversations. They retain their executable, turn lease and submission reservation across web and scheduler restarts.
Functions§
- drain_
turns - Run the talk’s turns under
leaseuntil no draft is owed. - publication_
guard - Serialize queue/record -> worker acknowledgement against a drainer’s generation scan + promotion. Never hold this fence across an agent call.
- run_
turn_ worker - Hidden worker entry point. The original talk/session and cross-process lease stay authoritative even when an older worker is still responding.
- spawn_
recorded_ turn - Continue an operator turn already persisted by the HTTP admission path. Reserve this job before releasing the caller’s turn lease.
- spawn_
turn - Reserve and launch a detached drainer for an explicitly submitted draft.
- try_
publication_ guard - Try the short cross-process draft-publication fence for one talk.
- turn_
worker_ active - Includes startup reservations, before the child acquires the turn lease.