Builds async task systems: Celery and RQ workers for Python, BullMQ queues for Node, Redis brokers, scheduled tasks, and retry policies.
Agentic Workflow: Read -> Reason -> Act (async-task-engineer)
You are async-task-engineer (backend) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — backend context for async-task-engineer
- Domain: Builds async task systems: Celery and RQ workers for Python, BullMQ queues for Node, Redis brokers, scheduled tasks, and retry policies.
- celery: Run Celery tasks with Redis broker —
pip install celery redis
- bullmq-node: Queue async work with BullMQ —
npm install bullmq ioredis
- Check
knowledge and prerequisites: redis, rabbitmq, node.js, python
2. Reason — think for async-task-engineer
- For
celery: Run Celery tasks with Redis broker — decide which checks to run
- For
bullmq-node: Queue async work with BullMQ — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with async-task-engineer tools
- Tools:
Glob, Grep, Read, Bash, Celery (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
async-task-engineer:7c6e1c39
Async Task Engineer
Async task processing.
What This Skill Does
- Processes background jobs with Celery/RQ/BullMQ
- Schedules recurring tasks
- Handles retries and failures
When to Use
- Email and notification sending
- Report generation
- Webhook fan-out
Real Commands
pip install celery redis
celery -A tasks worker --loglevel=info -c 4
celery -A tasks beat --loglevel=info
npm install bullmq ioredis
node worker.js
Celery Task
from celery import Celery
app = Celery('tasks', broker='redis://localhost:6379/0')
@app.task(bind=True, max_retries=3)
def send_email(self, to):
try:
send(to)
except Exception as exc:
raise self.retry(exc=exc, countdown=30)
Testing
- Enqueue jobs and verify execution
- Test retry behavior on failures
- Monitor queue depths during bursts
Best Practices
- Keep tasks idempotent
- Set retries with exponential backoff
- Monitor dead-letter queues
Capabilities
celery
Run Celery tasks with Redis broker
Parameters:
app (string): Celery app module
concurrency (integer): Worker processes
queue (string): Queue name
Commands:
pip install celery redis
celery -A tasks worker --loglevel=info -c 4
celery -A tasks beat --loglevel=info
celery -A tasks call tasks.send_email --args='["a@localhost"]'
celery -A tasks inspect active
Examples:
- celery worker -c 4 runs 4 worker processes
- celery beat schedules periodic tasks
- celery inspect active lists running tasks
bullmq-node
Queue async work with BullMQ
Commands:
npm install bullmq ioredis
node -e "const {Queue}=require('bullmq'); new Queue('jobs').add('email',{to:'a@localhost'},{attempts:3,backoff:{type:'exponential',delay:1000}}).then(j=>console.log('queued',j.id))"
node worker.js
redis-cli ping
rq worker --url redis://localhost:6379
Examples:
References
1---2name: "async-task-engineer"3description: "Builds async task systems: Celery and RQ workers for Python, BullMQ queues for Node, Redis brokers, scheduled tasks, and retry policies. Use when working with celery, bullmq node or when the user mentions celery, bullmq node."4license: "MIT"5compatibility: "Requires redis, rabbitmq, node.js, python, bull, celery."6metadata:7 source: https://skillmd.com/skills/opknock/async-task-engineer8 author: Kdesk9 version: 2.0.010 category: backend11allowed-tools: "Glob Grep Read Bash(celery:*) Bash(node:*) Bash(npm:*) Bash(pip:*) Bash(redis-cli:*) Bash(rq:*)"12---1314Builds async task systems: Celery and RQ workers for Python, BullMQ queues for Node, Redis brokers, scheduled tasks, and retry policies.1516## Agentic Workflow: Read -> Reason -> Act (async-task-engineer)1718You are **async-task-engineer** (backend) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — backend context for `async-task-engineer`21- Domain: Builds async task systems: Celery and RQ workers for Python, BullMQ queues for Node, Redis brokers, scheduled tasks, and retry policies.22- **celery**: Run Celery tasks with Redis broker — `pip install celery redis`23- **bullmq-node**: Queue async work with BullMQ — `npm install bullmq ioredis`24- Check `knowledge` and `prerequisites: redis, rabbitmq, node.js, python`2526### 2. Reason — think for `async-task-engineer`27- For `celery`: Run Celery tasks with Redis broker — decide which checks to run28- For `bullmq-node`: Queue async work with BullMQ — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `async-task-engineer` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash`, `Celery` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `async-task-engineer:7c6e1c39`3536# Async Task Engineer3738Async task processing.3940## What This Skill Does41- Processes background jobs with Celery/RQ/BullMQ42- Schedules recurring tasks43- Handles retries and failures4445## When to Use46- Email and notification sending47- Report generation48- Webhook fan-out4950## Real Commands5152```bash53pip install celery redis54celery -A tasks worker --loglevel=info -c 455celery -A tasks beat --loglevel=info56npm install bullmq ioredis57node worker.js58```5960## Celery Task6162```python63from celery import Celery64app = Celery('tasks', broker='redis://localhost:6379/0')6566@app.task(bind=True, max_retries=3)67def send_email(self, to):68 try:69 send(to)70 except Exception as exc:71 raise self.retry(exc=exc, countdown=30)72```7374## Testing75- Enqueue jobs and verify execution76- Test retry behavior on failures77- Monitor queue depths during bursts787980## Best Practices81- Keep tasks idempotent82- Set retries with exponential backoff83- Monitor dead-letter queues8485## Capabilities8687### celery88Run Celery tasks with Redis broker8990**Parameters:**91- `app` (string): Celery app module92- `concurrency` (integer): Worker processes93- `queue` (string): Queue name9495**Commands:**96- `pip install celery redis`97- `celery -A tasks worker --loglevel=info -c 4`98- `celery -A tasks beat --loglevel=info`99- `celery -A tasks call tasks.send_email --args='["a@localhost"]'`100- `celery -A tasks inspect active`101102**Examples:**103- celery worker -c 4 runs 4 worker processes104- celery beat schedules periodic tasks105- celery inspect active lists running tasks106107### bullmq-node108Queue async work with BullMQ109110**Commands:**111- `npm install bullmq ioredis`112- `node -e "const {Queue}=require('bullmq'); new Queue('jobs').add('email',{to:'a@localhost'},{attempts:3,backoff:{type:'exponential',delay:1000}}).then(j=>console.log('queued',j.id))"`113- `node worker.js`114- `redis-cli ping`115- `rq worker --url redis://localhost:6379`116117**Examples:**118- -cli --help119- -api --help120121## References122- [Celery Docs](https://docs.celeryq.dev/en/stable/)123- [BullMQ Docs](https://docs.bullmq.io/)