fix queue for cronjob

This commit is contained in:
j 2012-06-07 10:59:13 +02:00
parent b46f18c866
commit c753688f41
3 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ PANDORA_BASE=/srv/pandora
DAEMON_USER="pandora"
DAEMON_NAME=pandora/manage.py
DAEMON="$PANDORA_BASE/$DAEMON_NAME"
DAEMON_ARGS="celeryd -Q default -n pandora-tasks -f /var/log/pandora/pandora-tasks.log -l INFO"
DAEMON_ARGS="celeryd -Q default,celery -n pandora-tasks -f /var/log/pandora/pandora-tasks.log -l INFO"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

View file

@ -17,7 +17,7 @@ test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
cd $VENV/pandora
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
-Q default \
-Q default,celery \
-n pandora-default \
--pidfile /var/run/pandora/pandora-tasks.pid \
-f /var/log/pandora/pandora-tasks.log \

View file

@ -14,7 +14,7 @@ from celery.task import task, periodic_task
import models
@periodic_task(run_every=timedelta(days=1))
@periodic_task(run_every=timedelta(days=1), queue='encoding')
def cronjob(**kwargs):
update_random_sort()
update_random_clip_sort()