build: add polaris worker CLI subcommand #63

Merged
bart merged 1 commit from feature/cli-worker-command into main 2026-09-11 11:15:49 +00:00
Collaborator

Closes #52.

Wires docker-compose.yml's worker service (command: ["polaris", "worker"]) to the worker process #6 shipped at polaris.worker.main:main(). Follows the exact shape of the existing cli/api.py: a discovered polaris/cli/worker.py module, lazy import inside run() so registration never required polaris.worker to exist at import time.

Verified now that #53 is merged: ruff/mypy --strict/pytest clean, and the handler resolves and imports polaris.worker.main.main correctly (checked directly, not just via tests).

Ticks the first acceptance-criteria box on #6 (worker starts against the compose stack) — that ticket's own unit tests already covered the rest of the worker process directly.

🤖 Generated with Claude Code

https://claude.ai/code/session_013YioTVKBPoE6thZqbnTtnM

Closes #52. Wires `docker-compose.yml`'s `worker` service (`command: ["polaris", "worker"]`) to the worker process #6 shipped at `polaris.worker.main:main()`. Follows the exact shape of the existing `cli/api.py`: a discovered `polaris/cli/worker.py` module, lazy import inside `run()` so registration never required `polaris.worker` to exist at import time. Verified now that #53 is merged: `ruff`/`mypy --strict`/`pytest` clean, and the handler resolves and imports `polaris.worker.main.main` correctly (checked directly, not just via tests). Ticks the first acceptance-criteria box on #6 (worker starts against the compose stack) — that ticket's own unit tests already covered the rest of the worker process directly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013YioTVKBPoE6thZqbnTtnM
Closes #52. Wires docker-compose.yml's worker service (which already
runs `command: ["polaris", "worker"]`) to the process #6 ships at
polaris.worker.main:main(). Lazy import so registration doesn't
require polaris.worker to exist at import time.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YioTVKBPoE6thZqbnTtnM
bart merged commit 85531a6da3 into main 2026-09-11 11:15:49 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
patrick/Polaris!63
No description provided.