treeherder/bin/run_celery_worker_log_parser

23 строки
538 B
Plaintext
Исходник Обычный вид История

#!/usr/bin/env bash
# Make non-zero exit codes & other errors fatal.
set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR
source /etc/profile.d/treeherder.sh
exec newrelic-admin run-program celery -A treeherder worker \
-Q \
log_parser,\
log_parser_fail,\
log_store_failure_lines,\
log_store_failure_lines_fail,\
log_crossreference_error_lines,\
log_crossreference_error_lines_fail,\
log_autoclassify,\
log_autoclassify_fail\
--concurrency=10 -l INFO \
--maxtasksperchild=500 -n log_parser.%h