Set the stable root id used to derive per-phase checkpoint keys. Supply a deterministic id (e.g. session-derived) for resume to work across runs; otherwise a random id is used and resume is effectively disabled.
(mut self, root_id: impl Into<String>)
| 144 | /// deterministic id (e.g. session-derived) for resume to work across runs; |
| 145 | /// otherwise a random id is used and resume is effectively disabled. |
| 146 | pub fn with_root_id(mut self, root_id: impl Into<String>) -> Self { |
| 147 | self.root_id = Some(root_id.into()); |
| 148 | self |
| 149 | } |
| 150 | |
| 151 | /// Finalize the [`Workflow`], creating its event channel. |
| 152 | pub fn build(self) -> Workflow { |
no outgoing calls
no test coverage detected