Skip to content

Implement Phase 3 PostgreSQL queue API - #4

Merged
evantahler merged 11 commits into
mainfrom
cursor/phase-3-queue-e389
Aug 29, 2026
Merged

Implement Phase 3 PostgreSQL queue API#4
evantahler merged 11 commits into
mainfrom
cursor/phase-3-queue-e389

Conversation

@evantahler

@evantahler evantahler commented Aug 29, 2026

Copy link
Copy Markdown
Member

Implements docs/plans/03-queue.md.

  • adds the node-resque-compatible Queue inspection and administration surface backed by pg-boss jobs
  • adds delayed duplicate protection, failure management, worker metadata accessors, string-valued stats, and leader lookup
  • recreates queues after delQueue and only drops a pg-boss queue when no jobs remain
  • forceCleanWorker fails one original active job in place
  • ports all Phase 3 Queue titles, including worker metadata cleanup/retry behavior
  • adds focused count/range, expiry, multi-instance duplicate, serialization, and error-path coverage
  • introduces the plugin base/runner needed by enqueue hooks
  • updates the living phase plans and conformance semantic-difference log
  • bumps the package to 0.2.0

Verification:

  • bun test __tests__/core/queue.test.ts --max-concurrency=1 — 56 pass, 0 skip
  • bun run lint
  • bun run build
  • node scripts/assert-node-package.mjs
Open in Web Open in Cursor 

cursoragent and others added 3 commits August 29, 2026 04:41
Co-authored-by: Evan Tahler <evan@evantahler.com>
Co-authored-by: Evan Tahler <evan@evantahler.com>
Co-authored-by: Evan Tahler <evan@evantahler.com>
@evantahler
evantahler marked this pull request as ready for review August 29, 2026 04:43
Co-authored-by: Evan Tahler <evan@evantahler.com>
Comment thread src/core/queue.ts Outdated
Comment thread src/core/queue.ts Outdated
Co-authored-by: Evan Tahler <evan@evantahler.com>
Comment thread src/core/queue.ts Outdated
Co-authored-by: Evan Tahler <evan@evantahler.com>
Comment thread src/core/queue.ts
Co-authored-by: Evan Tahler <evan@evantahler.com>
Comment thread src/core/queue.ts
Co-authored-by: Evan Tahler <evan@evantahler.com>
Comment thread src/core/queue.ts
Co-authored-by: Evan Tahler <evan@evantahler.com>

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 480fe14. Configure here.

Comment thread src/core/queue.ts
cursoragent and others added 2 commits August 29, 2026 05:51
Co-authored-by: Evan Tahler <evan@evantahler.com>
Co-authored-by: Evan Tahler <evan@evantahler.com>
@evantahler
evantahler merged commit 73d4c77 into main Aug 29, 2026
6 checks passed
@evantahler
evantahler deleted the cursor/phase-3-queue-e389 branch August 29, 2026 06:18
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