Changeset View
Changeset View
Standalone View
Standalone View
docker/services/swh-indexer-worker-celery/entrypoint.sh
- This file was moved from docker/services/swh-indexer-worker/entrypoint.sh.
Show All 12 Lines | "shell") | ||||
exec bash -i | exec bash -i | ||||
;; | ;; | ||||
*) | *) | ||||
echo Waiting for RabbitMQ to start | echo Waiting for RabbitMQ to start | ||||
wait-for-it amqp:5672 -s --timeout=0 | wait-for-it amqp:5672 -s --timeout=0 | ||||
wait_pgsql | wait_pgsql | ||||
echo Starting swh-indexer worker | echo Starting swh-indexer Celery-based worker | ||||
exec python -m celery \ | exec python -m celery \ | ||||
--app=swh.scheduler.celery_backend.config.app \ | --app=swh.scheduler.celery_backend.config.app \ | ||||
worker \ | worker \ | ||||
--pool=prefork --events \ | --pool=prefork --events \ | ||||
--concurrency=${CONCURRENCY} \ | --concurrency=${CONCURRENCY} \ | ||||
--max-tasks-per-child=${MAX_TASKS_PER_CHILD} \ | --max-tasks-per-child=${MAX_TASKS_PER_CHILD} \ | ||||
-Ofair --loglevel=${LOGLEVEL} \ | -Ofair --loglevel=${LOGLEVEL} \ | ||||
--hostname "${SWH_WORKER_INSTANCE}@%h" | --hostname "${SWH_WORKER_INSTANCE}@%h" | ||||
;; | ;; | ||||
esac | esac |