Skip to content

fix(codefresh-run): terminate the child build only on timeout - #740

Merged
andrii-codefresh merged 1 commit into
masterfrom
CF-2404-cli-retry-520
Nov 5, 2026
Merged

andrii-codefresh merged 1 commit into
masterfrom
CF-2404-cli-retry-520

Conversation

@andrii-codefresh

Copy link
Copy Markdown
Contributor

With TERMINATE_ON_TIMEOUT=true the step terminated the child build on any codefresh wait failure, including temporary API errors (e.g. 520), so healthy child builds were killed.

Now the build is terminated only when the timeout is reached. The timeout is detected by exit code 124 (CLI >= 1.3.0) or by the "Operation has timed out" message, so the default CLI image keeps working.

Fixes CF-2404

What

Why

Notes

With TERMINATE_ON_TIMEOUT=true the step terminated the child build on
any `codefresh wait` failure, including temporary API errors (e.g. 520),
so healthy child builds were killed.

Now the build is terminated only when the timeout is reached. The
timeout is detected by exit code 124 (CLI >= 1.3.0) or by the
"Operation has timed out" message, so the default CLI image keeps working.

Fixes CF-2404
@andrii-codefresh
andrii-codefresh merged commit fd9b7b6 into master Nov 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants