Bug 1140850 - Remove gevent celery worker script from the repo

Since it's unused & we're moving away from gevent.
This commit is contained in:
Ed Morley 2015-04-13 17:12:44 +01:00
Родитель 19d0b51d2a
Коммит e8ad64842d
2 изменённых файлов: 0 добавлений и 37 удалений

Просмотреть файл

@ -1,31 +0,0 @@
#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
curr_dir=$( dirname "${BASH_SOURCE[0]}" )
cd $( dirname $curr_dir)
source /etc/profile.d/treeherder.sh
if [[ ${NEW_RELIC_LICENSE_KEY+isset} = isset ]]; then
NEWRELIC_ADMIN="newrelic-admin run-program"
fi
if [ -f ../venv/bin/celery ]; then
source ../venv/bin/activate
CELERY=../venv/bin/celery
else
CELERY=celery
fi
LOGFILE=/var/log/celery/celery_worker_gevent.log
if [ ! -f $LOGFILE ]; then
touch $LOGFILE
fi
exec $NEWRELIC_ADMIN $CELERY -A treeherder worker \
-Q log_parser_fail,log_parser,log_parser_hp,log_parser_json -P gevent \
--concurrency=10 --logfile=$LOGFILE -l INFO \
--maxtasksperchild=500 -n log_parser.%h

Просмотреть файл

@ -19,12 +19,6 @@ Celery task worker
------------------
This service executes asynchronous tasks that can be by triggered by the celerybeat task scheduler or by another worker.
In a typical treeherder deployment you will have two different pools of workers:
* a gevent based pool, generally good for I/O bound tasks
* a pre-fork based pool, generally good for CPU bound tasks
In the bin directory of treeherder-service there's a script to run both these type of pools.
Celerybeat task scheduler
-------------------------