title: How can to start tasks with celery-beat?
body: <p>Why i can't run a periodic tasks?</p>
  
  <p><strong>proj/settings.py</strong></p>
  
  <pre><code>REDIS_HOST = 'localhost'
  REDIS_PORT = '6379'
  CELERY_BROKER_URL = 'redis://localhost:6379'
  BROKER_URL = 'redis://' + REDIS_HOST + ':' + REDIS_PORT
  
  CELERY_BEAT_SCHEDULE = {
      'task-first': {
          'task': 'app.tasks.one',
          'schedule': timedelta(seconds=1)
      },
      'task-second': {
          'task': 'app.tasks.two',
          'schedule': crontab(minute=0, hour='*/3,10-19')
      }
  }
  </code></pre>
  
  <p><strong>proj/celery.py</strong></p>
  
  <pre><code>os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
  
  app = Celery('proj')
  app.config_from_object('django.conf:settings')
  
  app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
  </code></pre>
  
  <p><strong>proj/__init.py__</strong></p>
  
  <pre><code>from .celery import app as celery_app
  
  __all__ = ['celery_app']
  </code></pre>
  
  <p><strong>celery -A proj worker -l info</strong></p>
  
  <pre><code>[2019-10-31 16:57:57,906: INFO/MainProcess] Connected to redis://localhost:6379//
  [2019-10-31 16:57:57,912: INFO/MainProcess] mingle: searching for neighbors
  [2019-10-31 16:57:58,927: INFO/MainProcess] mingle: all alone
  [2019-10-31 16:57:58,951: INFO/MainProcess] celery@lexvel-MS-7A72 ready.
  </code></pre>
  
  <p><em>Tasks are found</em></p>
  
  <p><strong>celery -A proj beat -l info</strong></p>
  
  <pre><code>Configuration -&gt;
      . broker -&gt; redis://localhost:6379//
      . loader -&gt; celery.loaders.app.AppLoader
      . scheduler -&gt; celery.beat.PersistentScheduler
      . db -&gt; celerybeat-schedule
      . logfile -&gt; [stderr]@%INFO
      . maxinterval -&gt; 5.00 minutes (300s)
  [2019-10-31 16:58:02,851: INFO/MainProcess] beat: Starting...
  </code></pre>
  
  <p>The <code>celerybeat-shedule</code> file is created. But besides these lines nothing more is displayed.</p>
  
  <p><strong>tasks</strong></p>
  
  <pre><code>@task()
  def one():
      print('start 1', datetime.now())
      driver = init_driver()
      parse(driver)
      driver.close()
      driver.quit()
  ​
  ​
  @task()
  def two():
      print('start 2', datetime.now())
      driver = init_driver()
      parse2(driver)
      driver.close()
      driver.quit()
      print('end 2', datetime.now())
  </code></pre>