зеркало из https://github.com/mozilla/treeherder.git
22 строки
453 B
Bash
Executable File
22 строки
453 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
|
|
cd $SRC_DIR
|
|
|
|
PROJECT_ROOT=$(readlink -f ../)
|
|
PATH=$PROJECT_ROOT/venv/bin:$PATH
|
|
|
|
source /etc/profile.d/treeherder.sh
|
|
|
|
LOGFILE=/var/log/celery/celery_worker_pushlog.log
|
|
|
|
if [ ! -f $LOGFILE ]; then
|
|
touch $LOGFILE
|
|
fi
|
|
|
|
exec newrelic-admin run-program celery -A treeherder worker \
|
|
-Q pushlog \
|
|
--concurrency=5 --logfile=$LOGFILE -l INFO \
|
|
--maxtasksperchild=500 -n pushlog.%h
|
|
|