experiment with celery
authorCharles Connell <charles@connells.org>
Fri, 23 May 2014 18:26:40 +0000 (14:26 -0400)
committerCharles Connell <charles@connells.org>
Fri, 23 May 2014 18:26:40 +0000 (14:26 -0400)
Procfile
celerywrapper.sh [new file with mode: 0644]

index 285231d6275aebca8035500efb039d4d3d7060e1..d7235b4f90b831b9c5f3144deb6caff6cb095d3e 100644 (file)
--- a/Procfile
+++ b/Procfile
@@ -1,3 +1,4 @@
 web: gunicorn karmaworld.wsgi
 celeryworker: python manage.py celery worker --pidfile=/tmp/celeryd.pid -l info
 celerybeat: python manage.py celery beat --pidfile=/tmp/beat.pid -l info
+celerywrapper: sh celerywrapper.sh
diff --git a/celerywrapper.sh b/celerywrapper.sh
new file mode 100644 (file)
index 0000000..7ae2289
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+python manage.py celery worker --pidfile=/tmp/celeryd.pid -l info &
+python manage.py celery beat --pidfile=/tmp/beat.pid -l info &