1.3 KiB
Simple full-sync replay
The Worker control server listens on :18081 inside the private Docker network. Do not publish port 18081 to the host or the internet. Admin already enforces user JWT authentication and replay permissions and calls http://iotlcm-worker-svr:18081 directly; no additional Worker URL or bearer token environment variables are needed.
POST /api/v1/iot/fullSyncRuns/replaywith{ "sourceRunId": "..." }returnsreplayRunIdandaccepted. Admin requirescpm:iot:fullSyncRuns:replay.GET /api/v1/iot/fullSyncRuns/replay/{replayRunId}reports admission (accepted,processing,needs_attention,completed), remaining source records, enqueued count, and the independent target Run status. Requirescpm:iot:fullSyncRuns:replay:view.
All failures in a completed flow: or sim-status: Run are selected. No retryability filter; the target Run has exactly one business round. Source failure entries are deleted only after target task-state confirms enqueue; original outcome counts and historical JSON remain unchanged. Repeat requests to the same source return the same target. After repairing a needs_attention condition, repeat the request to resume it. To retry again after completion, use the new Replay Run as the source.
No deployment or live Replay request is part of this change.