Fixes: 1) Update Celery worker configuration in `worker-entrypoint.sh` to optimize worker pool and task limits; Extra: Refactor `docker-compose.yml` and scripts for improved service management.
8 lines
No EOL
431 B
Bash
8 lines
No EOL
431 B
Bash
#!/usr/bin/bash
|
|
set -e
|
|
|
|
# wait for auxiliary services
|
|
poetry run python manage.py await_services
|
|
|
|
# run worker and metrics exporter
|
|
poetry run celery -A evibes worker --pool=prefork --concurrency=8 --loglevel=info -E --queues=default --worker-prefetch-multiplier=1 --max-tasks-per-child=100 --max-memory-per-child=512000 --soft-time-limit=3600 --time-limit=7200 --pool-startup-timeout=30 & /usr/local/bin/celery-prometheus-exporter |