# Configuration file for Pulp's Celery workers

# This template defines where each Celery worker's log will be written. %n is filled in with the name of the worker.
CELERYD_LOG_FILE="/var/log/pulp/%n.log"

# Configure the log level for the Celery workers here. DEBUG, INFO, WARNING, ERROR, CRITICAL, and FATAL are the
# allowed values.
CELERYD_LOG_LEVEL="INFO"

# This template defines where each Celery worker will store its process ID. %n is filled in with the name of the
# worker.
CELERYD_PID_FILE="/var/run/pulp/%n.pid"

# Configure Python's encoding for writing all logs, stdout and stderr
PYTHONIOENCODING="UTF-8"

######################################################################
# Please do not edit any of the settings below this mark in this file!
######################################################################
CELERY_APP="pulp.server.async.app"

CELERY_CREATE_DIRS=1

CELERYD_NODES="resource_manager"

# Set the concurrency of each worker node to 1, tell the worker to participate in event
# broadcasting, and subscribe to the resource_manager queue. DO NOT CHANGE THIS SETTING!
CELERYD_OPTS="-c 1 --events -Q resource_manager --umask=18"

CELERYD_USER="apache"

DEFAULT_NODES=""

# For the resource_manager, this should be set to 0.
PULP_CONCURRENCY=0
