Skip to content

fix(db): prevent refresh shutdown hang - #10

Merged
caiopizzol merged 3 commits into
mainfrom
fix/postgres-shutdown
Aug 2, 2026
Merged

fix(db): prevent refresh shutdown hang#10
caiopizzol merged 3 commits into
mainfrom
fix/postgres-shutdown

Conversation

@caiopizzol

Copy link
Copy Markdown
Owner

Monthly refreshes can outlive Postgres.js’s default connection lifetime, leaving shutdown waiting forever after publication and backup succeed. This keeps completed workers resident on Moor.

  • Treats the database connection as batch-scoped so long-held advisory locks remain valid.
  • Bounds final cleanup to prevent another indefinite worker leak.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@caiopizzol
caiopizzol marked this pull request as ready for review August 2, 2026 22:42
@caiopizzol
caiopizzol enabled auto-merge (squash) August 2, 2026 23:24
@caiopizzol
caiopizzol merged commit 298ad2d into main Aug 2, 2026
4 checks passed
@caiopizzol
caiopizzol deleted the fix/postgres-shutdown branch August 2, 2026 23:24
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