Note that there are some explanatory texts on larger screens.

plurals
  1. POCelerybeat doesn't work as expected
    primarykey
    data
    text
    <p>I'm building some project with bottle and I need it to run certain scheduled actions periodically.</p> <p>I decided to go with rabbitmq + celery since that seemed like the most robust &amp; complete solution to manage scheduled works programatically.</p> <p>I installed both rabbitmq and celery okay, and when I use celeryd -B , tasks get done okay. However when I use celerybeat command, tasks are "sent" (or so says the output, cause I run both celeryd and celerybeat with -l debug option to be more verbose), but though they are regularly being "sent", they don't get executed (for testing purposes, task ought to appent current timestamp to a file every 60 sec). Anyway, everything else works fine since celeryd -B command in the same directory works just fine, it writes the file in expected intervals.</p> <p>Am I missing something?</p> <p>Here is the output of $celerybeat -l debug:</p> <pre><code>[2012-06-30 18:07:44,676: WARNING/MainProcess] celerybeat v2.5.5 is starting. [2012-06-30 18:07:44,750: WARNING/MainProcess] __ - ... __ - _ Configuration -&gt; . broker -&gt; amqp://guest@localhost:5672// . loader -&gt; celery.loaders.default.Loader . scheduler -&gt; celery.beat.PersistentScheduler . db -&gt; celerybeat-schedule . logfile -&gt; [stderr]@DEBUG . maxinterval -&gt; 5.00 minutes (300s) [2012-06-30 18:07:44,751: DEBUG/MainProcess] Setting default socket timeout to 30 [2012-06-30 18:07:44,751: INFO/MainProcess] Celerybeat: Starting... [2012-06-30 18:07:44,776: DEBUG/MainProcess] Current schedule: &lt;Entry: celery.backend_cleanup celery.backend_cleanup() {&lt;crontab: 0 4 * (m/h/d)&gt;} &lt;Entry: often tasks.output() {&lt;freq: 1.00 minute&gt;} [2012-06-30 18:07:44,776: DEBUG/MainProcess] Celerybeat: Ticking with max interval-&gt;5.00 minutes [2012-06-30 18:07:44,781: DEBUG/MainProcess] Start from server, version: 8.0, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2012 VMware, Inc.', u'capabilities': {}, u'platform': u'Erlang/OTP', u'version': u'2.8.4'}, mechanisms: [u'PLAIN', u'AMQPLAIN'], locales: [u'en_US'] [2012-06-30 18:07:44,785: DEBUG/MainProcess] Open OK! known_hosts [] [2012-06-30 18:07:44,787: DEBUG/MainProcess] using channel_id: 1 [2012-06-30 18:07:44,789: DEBUG/MainProcess] Channel open [2012-06-30 18:07:44,790: INFO/MainProcess] Scheduler: Sending due task tasks.output [2012-06-30 18:07:44,794: DEBUG/MainProcess] Celerybeat: Synchronizing schedule... [2012-06-30 18:07:44,838: DEBUG/MainProcess] tasks.output sent. id-&gt;53951ab0-022d-40a5-9f56-9a4a294294c7 [2012-06-30 18:07:44,838: DEBUG/MainProcess] Celerybeat: Waking up in 1.00 minute. </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload