Skip to content

deploy: retry the Caddy reload until its admin API binds - #1690

Merged
aaylward merged 2 commits into
mainfrom
deploy-caddy-reload-retry
Oct 23, 2026
Merged

aaylward merged 2 commits into
mainfrom
deploy-caddy-reload-retry

Conversation

@aaylward

Copy link
Copy Markdown
Collaborator

When up -d recreates Caddy (a new caddy:2-alpine or a compose change), the reload can reach the container before its admin endpoint binds and get connection refused, which fails the deploy even though Caddy comes up serving the new config. The reload now retries once a second for up to ten attempts, then fails with a message.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
1d4-web ca465b5 Commit Preview URL

Branch Preview URL
Oct 23 2026, 03:35 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
iili ca465b5 Commit Preview URL

Branch Preview URL
Oct 23 2026, 03:36 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ast-lol ca465b5 Commit Preview URL

Branch Preview URL
Oct 23 2026, 03:36 AM

@aaylward
aaylward enabled auto-merge (squash) October 23, 2026 03:36
@aaylward
aaylward merged commit 4b8adee into main Oct 23, 2026
24 checks passed
@aaylward
aaylward deleted the deploy-caddy-reload-retry branch October 23, 2026 03:40
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.

1 participant