2017-11-03 17:31:40 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Make non-zero exit codes & other errors fatal.
|
|
|
|
set -euo pipefail
|
2015-02-02 15:45:29 +03:00
|
|
|
|
2015-04-15 17:59:39 +03:00
|
|
|
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
|
2017-11-03 17:32:31 +03:00
|
|
|
cd "$SRC_DIR"
|
2015-04-15 17:59:39 +03:00
|
|
|
|
2017-11-03 17:51:44 +03:00
|
|
|
source vagrant/env.sh
|
2015-02-02 15:45:29 +03:00
|
|
|
|
2016-05-03 20:40:10 +03:00
|
|
|
exec newrelic-admin run-program celery -A treeherder worker \
|
2016-02-05 13:44:58 +03:00
|
|
|
-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,\
|
2016-09-12 19:30:36 +03:00
|
|
|
log_autoclassify_fail\
|
2016-11-17 15:38:30 +03:00
|
|
|
--concurrency=10 -l INFO \
|
2015-02-02 15:45:29 +03:00
|
|
|
--maxtasksperchild=500 -n log_parser.%h
|