Send workplan_id only on State Hub progress metadata posts
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 6s

This commit is contained in:
tegwick 2026-07-09 00:32:54 +02:00
parent 6c2d52a29b
commit b38b8c1f7f

View file

@ -398,7 +398,6 @@ def record_state_hub(args: argparse.Namespace, metadata: dict[str, Any]) -> None
scope_id = getattr(args, "state_hub_workplan_id", None) or args.state_hub_workstream_id scope_id = getattr(args, "state_hub_workplan_id", None) or args.state_hub_workstream_id
if scope_id: if scope_id:
payload["workplan_id"] = scope_id payload["workplan_id"] = scope_id
payload["workstream_id"] = scope_id
try: try:
post_json(url, payload, timeout=args.http_timeout) post_json(url, payload, timeout=args.http_timeout)
except Exception as exc: # noqa: BLE001 except Exception as exc: # noqa: BLE001