Django Celery Periodic Task not running (Heroku)?
<p>I have a Django application that I've deployed with Heroku. I'm trying to user celery to create a periodic task every minute. However, when I observe the logs for the worker using the following command:</p>

<pre><code>heroku logs -t -p worker 
</code></pre>

<p>I don't see my task being executed. Perhaps there is a step I'm missing? This is my configuration below...</p>

<p>Procfile</p>

<pre><code>web: gunicorn activiist.wsgi --log-file -
worker: celery worker --app=trending.tasks.app
</code></pre>

<p>Tasks.py</p>

<pre><code>import celery
app = celery.Celery('activiist')
import os
from celery.schedules import crontab
from celery.task import periodic_task
from django.conf import settings
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)

app.conf.update(BROKER_URL=os.environ['REDIS_URL'],
                CELERY_RESULT_BACKEND=os.environ['REDIS_URL'])
os.environ['DJANGO_SETTINGS_MODULE'] = 'activiist.settings'
from trending.views import *
@periodic_task(run_every=crontab())
def add():
    getarticles(30)
</code></pre>

<p>One thing to add. When I run the task using the python shell and the "delay()" command, the task does indeed run (it shows in the logs) -- but it only runs once and only when executed. </p>