зеркало из https://github.com/mozilla/treeherder.git
21 строка
542 B
Bash
Executable File
21 строка
542 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.log
|
|
|
|
if [ ! -f $LOGFILE ]; then
|
|
touch $LOGFILE
|
|
fi
|
|
|
|
exec newrelic-admin run-program celery -A treeherder worker -c 3 \
|
|
-Q default,cycle_data,calculate_durations,fetch_bugs,fetch_allthethings,generate_perf_alerts,detect_intermittents \
|
|
-E --maxtasksperchild=500 \
|
|
--logfile=$LOGFILE -l INFO -n default.%h
|