Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web server+client: /manager/probe_sync
This fixes the following scenario: ```console agama # cat rust/agama-lib/share/examples/profile_tw_gnome.json { "software": { "patterns": [ "gnome" ] } } agama # systemctl restart agama agama # agama config load < rust/agama-lib/share/examples/profile_gnome.json Anyhow(Backend call failed with status 400 and text '{"error":"Agama service error: Failed to find these patterns: [\"gnome\"]"}') agama # systemctl restart agama agama # PROBE_SYNC=1 agama config load < rust/agama-lib/share/examples/profile_gnome.json agama # ``` Asynchronous probing results in a race(?) and an error when performing the second PUT: ``` Sep 03 11:20:06 2cf2b88a0524 agama-web-server[9357]: request: GET /api/software/config Sep 03 11:20:06 2cf2b88a0524 agama-web-server[9357]: request: PUT /api/software/config Sep 03 11:20:06 2cf2b88a0524 agama-web-server[9357]: request: POST /api/manager/probe Sep 03 11:20:06 2cf2b88a0524 agama-web-server[9357]: request: PUT /api/software/config ```
- Loading branch information