Add sidecar execution, step timeout, and retry support#6
Merged
vdemeester merged 3 commits intomainfrom Feb 4, 2026
Merged
Conversation
Sidecars run as Dagger services alongside task steps: - Start before steps execute - Accessible by name as hostname (e.g., redis:6379) - Run concurrently with all steps in the task Uses Dagger's WithServiceBinding for network connectivity between step containers and sidecar services. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Steps can now specify a timeout using Go duration format: - timeout: "30s" - 30 second timeout - timeout: "5m" - 5 minute timeout - timeout: "1h30m" - 1 hour 30 minute timeout Uses context.WithTimeout to cancel step execution if the timeout is exceeded. Invalid or negative timeouts return an error before execution. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Steps can now specify a retry count for automatic retries on failure: - retries: 2 - retry up to 2 times (3 total attempts) - retries: 0 - no retries (default) Uses executeWithRetry helper for clean retry logic. Logs a warning when step fails after all retries are exhausted. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
30s,5m,1h30m)retries: Nfor automatic retry on failureChanges
Sidecar Support
pkg/executor/sidecar.gowithstartSidecars()andbindSidecarsToContainer()WithServiceBindingexamples/simple/sidecar-pipelinerun.yamlTimeout Support
pkg/executor/timeout.gowithparseTimeout()helperTimeoutfield totypes.Stepand parsercontext.WithTimeoutfor step cancellationexamples/simple/timeout-pipelinerun.yamlRetry Support
pkg/executor/retry.gowithexecuteWithRetry()helperRetriesfield totypes.Stepand parserexamples/simple/retry-pipelinerun.yamlTest plan
🤖 Generated with Claude Code