Skip to content

fix(Cloudflare/Container): reduce readiness retry schedule from 104s to 30s - #76

Merged
sam-goodwin merged 1 commit into
alchemy-run:mainfrom
yovanoc:fix/container-readiness-schedule
Apr 20, 2026
Merged

sam-goodwin merged 1 commit into
alchemy-run:mainfrom
yovanoc:fix/container-readiness-schedule

Conversation

@yovanoc

@yovanoc yovanoc commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Summary

The default containerApplicationReadinessSchedule was exponential(100).both(recurs(20)) which can take up to ~104 seconds of delay when the Cloudflare API returns ContainerApplicationNotFound during propagation. This causes 2-minute deploy stalls on every deploy.

Fix

Reduced to exponential(150).both(recurs(10)) starting at 150ms with 10 retries, which caps at ~30s max delay. This is still sufficient for Cloudflare eventual consistency without excessive delays during deployment.

Before

const containerApplicationReadinessSchedule = Schedule.exponential(100).pipe(
  Schedule.both(Schedule.recurs(20)),
);
// Max delay: ~104s (20 retries * exponential from 100ms)

After

const containerApplicationReadinessSchedule = Schedule.exponential(150).pipe(
  Schedule.both(Schedule.recurs(10)),
);
// Max delay: ~30s (10 retries * exponential from 150ms)

…to 30s

The default containerApplicationReadinessSchedule was exponential(100).both(recurs(20)) which can take up to ~104 seconds of delay when the CF API returns ContainerApplicationNotFound during propagation. This causes 2-minute deploy stalls. Reduced to exponential(150).both(recurs(10)) starting at 150ms with 10 retries which caps at ~30s max delay. Still sufficient for CF eventual consistency without excessive delays.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
@sam-goodwin
sam-goodwin merged commit bb2bff2 into alchemy-run:main Apr 20, 2026
1 check failed
DavidJFelix pushed a commit to DavidJFelix/alchemy-effect that referenced this pull request Aug 7, 2026
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