Worker creation and destruction
Explicit participant lifetime around a short background job.
Scope: Implemented Mermaid sequence syntax and illustrative playback. Calls are not executed.
Preview
Source
sequence-worker-lifetime.mmd
text/plain
sequenceDiagram
participant API
create participant Worker
API->>Worker: Start job
Worker->>Worker: Process batch
destroy Worker
Worker-->>API: Completed