Bug 1353807 - Remove celerybeat-schedule during provision

Since it saves having to document the troubleshooting step.
This commit is contained in:
Ed Morley 2017-04-19 00:29:57 +01:00 коммит произвёл Ed Morley
Родитель 884fffefea
Коммит a3eb8b5313
3 изменённых файлов: 4 добавлений и 16 удалений

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

@ -34,14 +34,3 @@ Errors during Vagrant setup
git config --global core.autocrlf input
You will then need to delete and reclone the repo (or else do a force checkout).
Why is my celery ingestion not running?
---------------------------------------
If after a ``celery -A treeherder worker -B --concurrency 5`` you experience a static celery console with no output, similar to:
.. code-block:: bash
09:32:40,010: WARNING/MainProcess] celery@local ready.
You should ctrl+c to shut down celery, remove the ``celerybeat-schedule`` file in the project root, and restart your worker.

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

@ -52,11 +52,6 @@ function thresetall {
echo "Deleting logs"
thlogsdelete
echo "Deleting celerybeat-schedule"
if [ -f ~/treeherder/celerybeat-schedule ]; then
rm ~/treeherder/celerybeat-schedule
fi
threstartmemcached
threstartrabbitmq

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

@ -114,4 +114,8 @@ echo '-----> Running Django migrations and loading reference data'
./manage.py migrate --noinput
./manage.py load_initial_data
echo '-----> Performing cleanup'
# Celery sometimes gets stuck and requires that celerybeat-schedule be deleted.
rm -f celerybeat-schedule || true
echo '-----> Setup complete!'