#!/usr/bin/env sh set -e # wait for auxiliary services poetry run python manage.py await_services # run workers and metrics exporter poetry run celery -A evibes worker --loglevel=info -E --concurrency=4 --autoscale=4,2 --max-tasks-per-child=100 --max-memory-per-child=512000 --soft-time-limit=10800 --time-limit=21600 & /usr/local/bin/celery-prometheus-exporter