diff --git a/apps/swh-lister/entrypoint.sh b/apps/swh-lister/entrypoint.sh index d7b956c..7909d47 100644 --- a/apps/swh-lister/entrypoint.sh +++ b/apps/swh-lister/entrypoint.sh @@ -1,23 +1,23 @@ #!/bin/bash set -e case "$1" in "shell") shift echo "Running command $@" exec bash -i "$@" ;; *) echo Starting the swh Celery worker for ${SWH_WORKER_INSTANCE} exec python -m celery \ --app=swh.scheduler.celery_backend.config.app \ worker \ --pool=prefork --events \ --concurrency=${CONCURRENCY} \ - --maxtasksperchild=${MAX_TASKS_PER_CHILD} \ + --max-tasks-per-child=${MAX_TASKS_PER_CHILD} \ -Ofair --loglevel=${LOGLEVEL} \ --without-gossip --without-mingle --without-heartbeat \ --hostname "${SWH_WORKER_INSTANCE}@%h" ;; esac diff --git a/apps/swh-loader-git/entrypoint.sh b/apps/swh-loader-git/entrypoint.sh index d7b956c..7909d47 100644 --- a/apps/swh-loader-git/entrypoint.sh +++ b/apps/swh-loader-git/entrypoint.sh @@ -1,23 +1,23 @@ #!/bin/bash set -e case "$1" in "shell") shift echo "Running command $@" exec bash -i "$@" ;; *) echo Starting the swh Celery worker for ${SWH_WORKER_INSTANCE} exec python -m celery \ --app=swh.scheduler.celery_backend.config.app \ worker \ --pool=prefork --events \ --concurrency=${CONCURRENCY} \ - --maxtasksperchild=${MAX_TASKS_PER_CHILD} \ + --max-tasks-per-child=${MAX_TASKS_PER_CHILD} \ -Ofair --loglevel=${LOGLEVEL} \ --without-gossip --without-mingle --without-heartbeat \ --hostname "${SWH_WORKER_INSTANCE}@%h" ;; esac