你正在阅读 Celery 3.1 的文档。开发版本文档见: 此处.

celery.bin.beat

The celery beat command.

--detach

Detach and run in the background as a daemon.

-s, --schedule

Path to the schedule database. Defaults to celerybeat-schedule. The extension ‘.db’ may be appended to the filename. Default is {default}.

-S, --scheduler

Scheduler class to use. Default is celery.beat.PersistentScheduler.

-interval

Max seconds to sleep between schedule iterations.

-f, --logfile

Path to log file. If no logfile is specified, stderr is used.

-l, --loglevel

Logging level, choose between DEBUG, INFO, WARNING, ERROR, CRITICAL, or FATAL.

class celery.bin.beat.beat(app=None, get_app=None, no_color=False, stdout=None, stderr=None, quiet=False, on_error=None, on_usage_error=None)[源代码]

Start the beat periodic task scheduler.

Examples:

celery beat -l info
celery beat -s /var/run/celery/beat-schedule --detach
celery beat -S djcelery.schedulers.DatabaseScheduler
doc = 'Start the beat periodic task scheduler.\n\n Examples::\n\n celery beat -l info\n celery beat -s /var/run/celery/beat-schedule --detach\n celery beat -S djcelery.schedulers.DatabaseScheduler\n\n '
enable_config_from_cmdline = True
get_options()[源代码]
run(detach=False, logfile=None, pidfile=None, uid=None, gid=None, umask=None, working_directory=None, **kwargs)[源代码]
supports_args = False

上一个主题

celery.bin.worker

下一个主题

celery.bin.events

本页