Repository navigation
feat(temporal): waitForArgoSync activity + argoSync profile (#106) - #192
Merged
Merged
Conversation
- waitForArgoSync({ appName, namespace?, server?, ... }) — a dependency-free
activity (primitives-only signature; imports neither the k8s lexicon nor the
generated Argo CRD types) that polls an Argo Application until
health=Healthy && sync=Synced. Reads status via kubectl by default, or the
Argo CD REST API when a server URL is given. Heartbeats every poll. Fails
fast with ArgoSyncFailedError on a terminal-unhealthy state (Degraded/Missing).
Status reader is injectable so it unit-tests against a faked Argo API.
- argoSync profile in TEMPORAL_ACTIVITY_PROFILES — 30m timeout, 60s heartbeat,
cheap idempotent retries, ArgoSyncFailedError non-retryable.
Auto-registered with the generated worker via the activities barrel export.
Part of #100.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
8 tasks
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.
Part of #100. Closes #106.
A dependency-free Temporal activity that lets workflows gate procedural steps on a declarative apply that Argo owns.
waitForArgoSync(args, signal?, fetcher?)Applicationuntilhealth=Healthy && sync=Synced.appName/namespace/server/ …) — imports neither the k8s lexicon nor the generated Argo CRD types.kubectl get applicationby default, or the Argo CD REST API whenserveris set.ArgoSyncFailedErroron a terminal-unhealthy state (Degraded / Missing).fetcher) → unit-tested against a faked Argo API with Healthy/Progressing/Degraded transitions.argoSyncprofile (TEMPORAL_ACTIVITY_PROFILES)30m timeout, 60s heartbeat, cheap idempotent retries,
ArgoSyncFailedErrornon-retryable.Auto-registered with the generated worker via the activities barrel export.
Acceptance criteria
argoSyncprofile exported + documented; signature primitives-only.🤖 Generated with Claude Code