#!/bin/bash
# Start Celery worker for Nexus POS background tasks

cd /home/Autopartes/pos
export MASTER_DB_URL="${MASTER_DB_URL:-postgresql://postgres@/nexus_autoparts}"
export REDIS_URL="${REDIS_URL:-redis://localhost:6379/0}"

exec celery -A celery_app worker --loglevel=info --concurrency=4 -n nexus-worker@%h
