Skip to content

fix(workspace): bound workspace purge cleanup - #1552

Merged
realcodesiman merged 7 commits into
mainfrom
realcodesiman/fix-remove-workspace
Oct 26, 2026
Merged

realcodesiman merged 7 commits into
mainfrom
realcodesiman/fix-remove-workspace

Conversation

@realcodesiman

Copy link
Copy Markdown
Contributor

Summary

  • Bound scheduled workspace teardown work so large purges yield before the cron deadline instead of holding the purge lease indefinitely.
  • Preserve the reversible deletion grace period; runtime work is frozen only when deletion becomes due.

Changes

  • Add timeout-guarded, resumable batches for workspace lifecycle cleanup, sequence dispatches, analytics, partitioned rows, and quota reconciliation.
  • Add FK indexes, concurrent partitioned-index migrations, schema metadata, and purge-index coverage.
  • Document workspace-purge invariants for database, worker, and agent workflows.

Test plan

  • pnpm ultracite fix (commit hook; no fixes needed)
  • pnpm lint
  • pnpm --filter @chatbotx.io/database check-types
  • pnpm --filter @chatbotx.io/database test
  • Manual verification of a due workspace purge alongside activity in another workspace

@github-actions github-actions Bot added the bug Something isn't working as expected label Oct 24, 2026
@realcodesiman
realcodesiman force-pushed the realcodesiman/fix-remove-workspace branch from e3a51c3 to 5b47c82 Compare October 24, 2026 11:20
@realcodesiman
realcodesiman merged commit b0d19b1 into main Oct 26, 2026
4 checks passed
@realcodesiman
realcodesiman deleted the realcodesiman/fix-remove-workspace branch October 26, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant