New Worker banner
colossus-lab colossus-lab

New Worker

Development community

Description

# Create new Celery worker: $ARGUMENTS Create a new worker with its task and dedicated queue. Follow these steps: ## 1. Create the tasks file Create `src/app/infrastructure/celery/tasks/{name}_tasks.py`: ```python from src.app.infrastructure.celery.app import celery_app @celery_app.task( name="openarg.{name}_task", bind=True, max_retries=3, default_retry_delay=60, ) def {name}_task(self, param1: str, param2: str | None = None): """Description of what the worker does."""

Installation

Installs to ~/.claude/commands/colossus-lab-openarg_backend-new-worker.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/colossus-lab/openarg_backend/HEAD/.claude/commands/new-worker.md -o ~/.claude/commands/colossus-lab-openarg_backend-new-worker.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository