periodic tasks in Celery 4.0
<p>As I know, since Celery 3.1 decorator <code>@periodic_task</code> is depricated.</p>

<p>So I am trying to run an example from celery <a href="http://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html" rel="nofollow noreferrer">docs</a>, and can't realise, what am I doing wrong.</p>

<p>I have the following code in <code>task_planner.py</code>:</p>

<pre><code>from celery import Celery
from kombu import Queue, Exchange



class Config(object):
    CELERY_QUEUES = (
        Queue(
            'try',
            exchange=Exchange('try'),
            routing_key='try',
        ),
    )
celery = Celery('tasks', 
                backend='redis://', 
                broker='redis://localhost:6379/0')
celery.config_from_object(Config)


celery.conf.beat_schedule = {
    'planner': {
        'task': 'some_task',
        'schedule': 5.0,
    },
}


@celery.task(queue='try')
def some_task():
    print('Hooray')
</code></pre>

<p>And when I run: <code>celery -A task_planner worker -l info -B</code>, I recieve only the following: <code>[2016-11-27 19:06:56,119: INFO/Beat] Scheduler: Sending due task planner (some_task)</code> every 5 sec.</p>

<p>But I am expecting the output 'Hooray'.</p>

<p>So, what am I missing?</p>