celery.bin.events
The celery events command.
参见
See Preload Options and Daemon Options.
-d, --dump
Dump events to stdout.
-c, --camera
Take snapshots of events using this camera.
--detach
Camera: Detach and run in the background as a daemon.
-F, --freq, --frequency
Camera: Shutter frequency. Default is every 1.0 seconds.
-r, --maxrate
Camera: Optional shutter rate limit (e.g. 10/m).
-l, --loglevel
Logging level, choose between DEBUG, INFO, WARNING, ERROR, CRITICAL, or FATAL. Default is INFO.
class celery.bin.events.events(app=None, get_app=None, no_color=False, stdout=None, stderr=None, quiet=False, on_error=None, on_usage_error=None)[源代码]
Event-stream utilities.
Commands:
celery events --app=proj
start graphical monitor (requires curses)
celery events -d --app=proj
dump events to screen.
celery events -b amqp://
celery events -C <camera> [options]
run snapshot camera.
Examples:
celery events
celery events -d
celery events -C mod.attr -F 1.0 --detach --maxrate=100/m -l info
doc = u’Event-stream utilities.\n\n Commands::\n\n celery events —app=proj\n start graphical monitor (requires curses)\n celery events -d —app=proj\n dump events to screen.\n celery events -b amqp://\n celery events -C <camera> [options]\n run snapshot camera.\n\n Examples::\n\n celery events\n celery events -d\n celery events -C mod.attr -F 1.0 —detach —maxrate=100/m -l info\n ‘
get_options()[源代码]
run(dump=False, camera=None, frequency=1.0, maxrate=None, loglevel=u’INFO’, logfile=None, prog_name=u’celery events’, pidfile=None, uid=None, gid=None, umask=None, working_directory=None, detach=False, \*kwargs*)[源代码]
run_evcam(camera, logfile=None, pidfile=None, uid=None, gid=None, umask=None, working_directory=None, detach=False, \*kwargs*)[源代码]
run_evdump()[源代码]
run_evtop()[源代码]
set_process_status(prog, info=u’’)[源代码]
supports_args = False