#!/bin/bash
set -e

echo "Starting Celery worker for webhook processing..."

cd packages/clew-api

celery -A celery_app worker \
  --loglevel=info \
  --concurrency=2 \
  --max-tasks-per-child=100 \
  --task-events \
  --without-heartbeat \
  --without-gossip \
  --without-mingle
