From b5d471d1ac7eb61c118fe1c969e5994698ffe1e5 Mon Sep 17 00:00:00 2001 From: Philipp Lengauer <100447901+plengauer@users.noreply.github.com> Date: Thu, 2 Jan 2025 13:36:50 +0100 Subject: [PATCH] Update main.sh --- actions/instrument/workflow/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/instrument/workflow/main.sh b/actions/instrument/workflow/main.sh index 42d5cbca3..7eb355404 100644 --- a/actions/instrument/workflow/main.sh +++ b/actions/instrument/workflow/main.sh @@ -16,7 +16,7 @@ printenv | grep -E '^OTEL_|^TRACEPARENT=|^TRACESTATE=' | grep -v HEADERS > "$env node upload_artifact.js opentelemetry "$env_dir"/.env rm -r "$env_dir" otel_span_deactivate "$span_handle" -while [ "$(github_workflow jobs | jq -r '.jobs[] | select(.status != "completed") | .name' | wc -l)" -gt 1 ]; do sleep 3; done +while [ "$(github_workflow jobs | jq -r '.jobs[] | select(.status != "completed") | .name' | wc -l)" -gt 1 ]; do sleep 5; done if [ "$(github_workflow jobs | jq -r '.jobs[] | select(.status == "completed") | select(.conclusion == "failure") | .name' | wc -l)" -gt 0 ]; then otel_span_error "$span_handle"; fi otel_span_end "$span_handle" otel_shutdown