title: Running celery beat on windows - mission impossible ?
body: <p>I'm stuck with running celery 3.1.17 on windows 7 (and later on 2013 server) using redis as backend.</p>
  
  <p>In my <code>celery.py</code> file I defined an app with one scheudled task </p>
  
  <pre><code>app = Celery('myapp', 
          backend='redis://localhost', 
          broker='redis://localhost',
          include=['tasks']
    )
  
  app.conf.update(
      CELERYBEAT_SCHEDULE = { 
          'dumdum': { 
            'task': 'tasks.dumdum', 
            'schedule': timedelta(seconds=5),
          }
        }
  )
  </code></pre>
  
  <p>The task is writing a line to a file </p>
  
  <pre><code>@app.task
  def dumdum():
      with open('c:/src/dumdum.txt','w') as f:
          f.write('dumdum actually ran !')
  </code></pre>
  
  <p>Running the beat service from the command line </p>
  
  <pre><code>(venv) celery beat -A tasks
  celery beat v3.1.17 (Cipater) is starting.
  __    -    ... __   -        _
  Configuration -&gt;
      . broker -&gt; redis://localhost:6379/1
      . loader -&gt; celery.loaders.app.AppLoader
      . scheduler -&gt; celery.beat.PersistentScheduler
      . db -&gt; celerybeat-schedule
      . logfile -&gt; [stderr]@%INFO
      . maxinterval -&gt; now (0s)
  [2015-03-15 10:50:33,265: INFO/MainProcess] beat: Starting...
  [2015-03-15 10:50:35,496: INFO/MainProcess] Scheduler: Sending due task dumdum (tasks.dumdum)
  [2015-03-15 10:50:40,513: INFO/MainProcess] Scheduler: Sending due task dumdum (tasks.dumdum)
  </code></pre>
  
  <p>Looks promising, BUT NOTHING HAPPENS. Nothing is being writen to the file. </p>
  
  <p>The <a href="http://celery.readthedocs.org/en/latest/tutorials/daemonizing.html#windows" rel="nofollow">celery documentation</a> on runnig beat on windows reference <a href="https://www.calazan.com/windows-tip-run-applications-in-the-background-using-task-scheduler/" rel="nofollow">this article</a> from 2011. The article explains how to run <code>celeryd</code> as a scheduler task on windows. <code>celeryd</code> has been deprecated since and the command stated in the article is no longer working (there is no <code>celery.bin.celeryd</code> module).</p>
  
  <p>So, What is the solution here ? </p>
  
  <p>Thanks. </p>