Skip to content

fix(ops): deploy waits for a running SSG rebuild; gate ignores ssg-worker content state - #698

Merged
mrviduus merged 1 commit into
mainfrom
fix/deploy-ssg-no-overlap
Oct 4, 2026
Merged

mrviduus merged 1 commit into
mainfrom
fix/deploy-ssg-no-overlap

Conversation

@mrviduus

@mrviduus mrviduus commented Oct 4, 2026

Copy link
Copy Markdown
Owner

What broke (2026-10-04)

Fix

  • New step before the SSG snapshot / frontend build: wait while an SSG job is Queued/Running (max 40 min, then proceed with a warning). Only jobs started/created in the last hour count — a row left Running by a crash (nothing recovers those; one exists locally) must not cost every deploy 40 min.
  • Health gate excludes ssg-worker: its "last rebuild failed" is content state, alarmed by health-check.yml, not a broken deploy.

Verified

  • action-validator ok; the SQL runs against the local DB (textstack_prod, status stored as text).

After merge

Queue one clean full rebuild with nothing deploying → lastRunFailed resets, health check green.

Rollback

Revert.

🤖 Generated with Claude Code

…rker content state

Two deploys today failed the same way: an SSG rebuild was rendering into dist/ssg-new
when the deploy's frontend build emptied dist/, the 08-31 guard failed the job, ssg-worker
went unhealthy, and #691's new gate then failed the next deploy on it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@mrviduus
mrviduus merged commit 77f56d4 into main Oct 4, 2026
10 checks passed
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