Skip to content

Crawler rule flag: source_flags side table (0044 could not lock sources) - #275

Merged
ralyodio merged 1 commit into
mainfrom
crawl-flag-side-table
Nov 8, 2026
Merged

ralyodio merged 1 commit into
mainfrom
crawl-flag-side-table

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #274, whose deploy failed: alter table sources waited on the web's minutes-long collection queries (ACCESS SHARE on sources), hit lock_timeout on every retry, and the health check kept the old container (site stayed up on 5fd35f0).

0044 is rewritten (it never applied anywhere) to create table source_flags (source_id pk, flag, flagged_at): no lock on sources, no FK for the same reason. finishRun upserts/deletes the row; rescheduleFailedSources skips sources that have one.

🤖 Generated with Claude Code

The deploy of #274 never applied 0044: ALTER TABLE sources needs ACCESS
EXCLUSIVE, and the web's long collection queries hold ACCESS SHARE on sources
for minutes, so the migration hit its 10 s lock_timeout on every retry and the
health check rolled the deploy back (the old container kept serving). A new
table takes no lock on sources. 0044 never applied anywhere, so the file is
rewritten in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit a6810e4 into main Nov 8, 2026
3 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