@startuml 08-seq-async-scan title Sequence — Async camera network scan (job pattern) actor "Operator" as User participant "Qt UI" as UI participant "ANSVIS\n/api/v1" as API participant "Job queue" as JOBS participant "ONVIF scanner" as SCAN User -> UI : Scan 192.168.1.0/24 UI -> API : POST /cameras/scan API -> JOBS : enqueue JOBS --> API : job_id=j1 API --> UI : 202 {job_id:j1,\n status:queued,\n links:{self:/jobs/j1}} JOBS -> SCAN : run loop poll until terminal UI -> API : GET /jobs/j1 API --> UI : 200 {status:running, progress:0.4} end SCAN --> JOBS : results UI -> API : GET /jobs/j1 API --> UI : 200 {status:succeeded,\n result:{discovered:[...]}} @enduml