@%@UCRWARNING=# @%@

# Name of nodes to start
CELERYD_NODES="dryrun import"

# Where to chdir at start.
CELERYD_CHDIR="/var/spool/ucs-school-import"

# Extra arguments to celeryd
# http://docs.celeryproject.org/en/latest/reference/celery.bin.worker.html
# -c --concurrency
# -Q, --queues
# -O optimization profile
# -l, --loglevel
CELERYD_OPTS="--verbose -c:dryrun 4 -c:import 1 -Q:dryrun dryrun -Q:import import -O:dryrun fair -O:import fair -l:dryrun DEBUG -l:import DEBUG"

# Name of the celery config module.
CELERY_CONFIG_MODULE=

# %n will be replaced with the nodename.
CELERYD_LOG_FILE="/var/log/univention/ucs-school-import/workers-%n.log"
#CELERYD_LOG_DIR="$(dirname $CELERYD_LOG_FILE)"
CELERYD_LOG_DIR="/var/log/univention/ucs-school-import/"

# Workers should run as an unprivileged user.
# But we need root access, to run the listener code.
CELERYD_USER="root"
CELERYD_GROUP="root"

CELERY_APP="ucsschool.http_api.app.celery:app"
CELERYD_PID_FILE="/run/ucs-school-import-worker/%n.pid"
#CELERYD_PID_DIR="$(dirname $CELERYD_PID_FILE)"
CELERYD_PID_DIR="/run/ucs-school-import-worker/"
CELERY_CREATE_DIRS=1
