# {{COMPONENT_NAME}} Worker Configuration

# App
APP_NAME={{COMPONENT_NAME}}
APP_ENVIRONMENT=development
APP_DEBUG=true

# Logging
LOG_LEVEL=debug
LOG_FORMAT=text

# Database (required for job queue)
# Local dev: PostgreSQL via docker-compose. Production: CockroachDB (platform-provisioned).
# The postgres:// scheme works for both — CockroachDB is wire-compatible.
DATABASE_URL=postgres://dev:dev@localhost:5432/{{PROJECT_NAME}}?sslmode=disable

# Worker
WORKER_POLL_INTERVAL=10s
WORKER_BATCH_SIZE=10
WORKER_MAX_RETRIES=3
WORKER_STALE_JOB_TIMEOUT=5m
WORKER_JOB_TIMEOUT=5m

# Redis (optional, for cache)
# REDIS_URL=redis://localhost:6379/0
