fix(deploy): #949 ask timeout on the deploy trigger is OutcomeUnknown (202 + pre-allocated id), not a failure; slow-compose phase timings

The id is allocated before the ask and travels in StartDeployment, so a timed-out
caller can name and poll the deployment that may still go ahead. REST answers 202
OutcomeUnknown with a Location; the AdminUI shows 'could not be confirmed, may still
be created'; a retry during a running compose gets 409 naming the same id. The actor
logs per-phase timings for composes slower than 3 s.
This commit is contained in:
Joseph Doherty
2026-12-01 19:27:13 -05:00
parent 6b60845931
commit 88c9766ab5
14 changed files with 333 additions and 15 deletions
+7
View File
@@ -96,6 +96,13 @@ if [ -n "$body" ]; then printf '%s\n' "$body"; fi
case "$status" in
2*)
# lmxopcua#949: 202 + outcome OutcomeUnknown = the trigger timed out waiting for the admin singleton
# (10 s); the deployment may STILL be created under the id in the body. Not a confirmed deployment.
if printf '%s' "$body" | grep -q '"outcome" *: *"OutcomeUnknown"'; then
echo "WARNING: the trigger timed out - the deployment may still go ahead (outcome unknown)." >&2
echo " Poll GET $DEPLOY_URL/<deploymentId> (X-Api-Key): 200 = it exists; 404 for a couple of" >&2
echo " minutes = it was not created and the trigger can be repeated." >&2
fi
exit 0
;;
404)