Skip to content

Fix #246: claim only registered job types - #308

Open
joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/246-worker-registered-types
Open

joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/246-worker-registered-types

Conversation

@joei4cm

@joei4cm joei4cm commented Dec 2, 2026

Copy link
Copy Markdown

Fixes #246

Summary

  • Default Workers without concurrencyByType now claim only job types that have a registered handler.
  • Job types this replica cannot handle remain PENDING for a replica that can, instead of becoming terminal FAILED tombstones.

Tests

  • pnpm --filter @copilotkit/outpost exec vitest run queue/src/__tests__/queue.test.ts --maxWorkers=2 — 62 passed
  • Prettier check, ESLint (0 errors), queue tsc --noEmit, and git diff --check passed

Notes

  • The per-type claim path already iterated registered handlers; the reclaim sweep intentionally remains type-blind.

🤖 Generated with Claude Code

Co-Authored-By: Claude Code <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

worker: a default-configured Worker claims job types it has no handler for, and destroys them

1 participant