You’ll declare a worker in your Procfile, deploy, and scale it to one or more instances.
1. Declare the worker
web: bin/rails server -p $PORT
worker: bundle exec sidekiq
Other examples:
worker: celery -A myproject worker --loglevel=info # Celery
worker: node worker.js # BullMQ / custom
2. Deploy
git push wokku main
Only web starts by default. Other process types run once you scale them.
3. Scale the worker
App → Runtime tab → Scaling → set CPU, RAM and instances for worker.
wokku ps:scale my-app worker=1
wokku ps:scale my-app web=2 worker=2 # both at once
Ask Claude: “Scale my-app to 1 worker.”
Each process type is sized and billed on its own. See Scaling Processes.
4. Add a queue backend
Most workers need Redis. Add a free shared one:
wokku addons:shared:enable my-app redis
REDIS_URL is set on the app, and every process type sees it. See Add a database.
Troubleshooting
- Worker not running: scale it to at least 1.
- Jobs not picked up: check that web and worker use the same
REDIS_URL. - Jobs killed on deploy: workers get
SIGTERMwhen replaced. Keep jobs idempotent. See Production Readiness.