Skip to content

fix: treat 'Already a VCL named' as success (idempotent push)#31

Merged
jensens merged 2 commits intomainfrom
fix/vcl-push-idempotent
Apr 9, 2026
Merged

fix: treat 'Already a VCL named' as success (idempotent push)#31
jensens merged 2 commits intomainfrom
fix/vcl-push-idempotent

Conversation

@jensens
Copy link
Copy Markdown
Member

@jensens jensens commented Apr 9, 2026

Summary

When the operator re-pushes VCL on requeue/retry, Varnish rejects vcl.inline with code 106 ("Already a VCL named ..."). This is not an error — the VCL is already loaded. Treat it as success.

One-line fix: check for "Already a VCL named" in the error message and return success.

Fixes #30

Test plan

  • go build ./... clean
  • Unit tests pass
  • All pre-commit hooks pass
  • E2E Chainsaw tests

🤖 Generated with Claude Code

jensens and others added 2 commits April 10, 2026 01:23
When the operator re-pushes VCL on requeue/retry, Varnish rejects
vcl.inline with code 106 if a VCL with the same name is already loaded.
Treat this as success since the VCL is already where it needs to be.

Fixes #30

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jensens jensens merged commit a0f931f into main Apr 9, 2026
7 of 8 checks passed
@jensens jensens deleted the fix/vcl-push-idempotent branch April 9, 2026 23:44
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.

Agent vcl.inline fails with 'Already a VCL named ...' on re-push

1 participant