This document describes Celery 2.4. For development docs, go here.
celery.events.snapshot¶
celery.events.snapshot¶
Consuming the events as a stream is not always suitable
so this module implements a system to take snapshots of the
state of a cluster at regular intervals. There is a full
implementation of this writing the snapshots to a database
in djcelery.snapshots
in the django-celery distribution.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
-
class
celery.events.snapshot.
Polaroid
(state, freq=1.0, maxrate=None, cleanup_freq=3600.0, logger=None, timer=None, app=None)¶ -
cancel
()¶
-
capture
()¶
-
cleanup
()¶
-
cleanup_signal
= <Signal: Signal>¶
-
clear_after
= False¶
-
install
()¶
-
on_cleanup
()¶
-
on_shutter
(state)¶
-
shutter
()¶
-
shutter_signal
= <Signal: Signal>¶
-
timer
= <module 'celery.utils.timer2' from '/home/docs/checkouts/readthedocs.org/user_builds/celery/envs/2.4-archived/local/lib/python2.7/site-packages/celery-2.4.7-py2.7.egg/celery/utils/timer2.pyc'>¶
-
-
celery.events.snapshot.
evcam
(camera, freq=1.0, maxrate=None, loglevel=0, logfile=None, pidfile=None, timer=None, app=None)¶