Skip to content

refactor: migrate worker_report to Worker/WorkerRunner pattern#141

Merged
extreme4all merged 7 commits into
developfrom
opencode/proud-panda
May 15, 2026
Merged

refactor: migrate worker_report to Worker/WorkerRunner pattern#141
extreme4all merged 7 commits into
developfrom
opencode/proud-panda

Conversation

@extreme4all-ai
Copy link
Copy Markdown
Contributor

Summary

  • Migrate worker_report from manual consume-loop + error-queue pattern to the reusable Worker/WorkerRunner abstraction, following the pattern established in worker_hiscore
  • Extract config into pydantic-settings (settings.py), add single-record adapter (adapter.py), and encapsulate batch insert + worker logic (worker.py)
  • Rewrite main.py to wire ReportWorker to WorkerRunner with graceful shutdown via stop_event and configurable N_WORKERS
  • Add worker component brick to projects/worker_report/pyproject.toml
  • Replace placeholder test with proper tests for adapter, insert_batch, and handle

@extreme4all extreme4all merged commit f4d9f2b into develop May 15, 2026
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