西芹花

flower-new的Python项目详细描述


https://badge.fury.io/py/flower.pnghttps://travis-ci.org/mher/flower.png?branch=masterhttps://pypip.in/d/flower/badge.png

flower是一个基于web的工具,用于监视和管理芹菜集群。

功能

  • 使用芹菜事件进行实时监控

    • Task progress and history
    • Ability to show task details (arguments, start time, runtime, and more)
    • Graphs and statistics
  • 遥控器

    • View worker status and statistics
    • Shutdown and restart worker instances
    • Control worker pool size and autoscale settings
    • View and modify the queues a worker instance consumes from
    • View currently running tasks
    • View scheduled tasks (ETA/countdown)
    • View reserved and revoked tasks
    • Apply time and rate limits
    • Configuration viewer
    • Revoke or terminate tasks
  • 经纪人监控

    • View statistics for all Celery queues
    • Queue length graphs
  • http api

  • 基本身份验证和Google OpenID身份验证

API

flower api允许通过restapi管理集群、调用任务和 通过websockets实时接收任务事件。

例如,您可以通过以下方式重新启动工作池:

$ curl -X POST http://localhost:5555/api/worker/pool/restart/myworker

或通过以下方式调用任务:

$ curl -X POST -d '{"args":[1,2]}' http://localhost:5555/api/task/async-apply/tasks.add

或终止执行任务:

$ curl -X POST -d 'terminate=True' http://localhost:5555/api/task/revoke/8a4da87b-e12b-4547-b89a-e92e4d1f8efd

或实时接收任务完成事件:

var ws = new WebSocket('ws://localhost:5555/api/task/events/task-succeeded/');
ws.onmessage = function (event) {
    console.log(event.data);
}

有关详细信息,请签出API Referenceexamples

安装

要安装,只需:

$ pip install flower

用法

启动服务器并打开http://localhost:5555

$ flower --port=5555

或从芹菜中推出:

$ celery flower -A proj --address=127.0.0.1 --port=5555

代理URL和其他配置选项可以通过标准芹菜选项传递:

$ celery flower -A proj --broker=amqp://guest:guest@localhost:5672//

屏幕截图

https://raw.github.com/mher/flower/master/docs/screenshots/dashboard.pnghttps://raw.github.com/mher/flower/master/docs/screenshots/pool.pnghttps://raw.github.com/mher/flower/master/docs/screenshots/tasks.pnghttps://raw.github.com/mher/flower/master/docs/screenshots/task.pnghttps://raw.github.com/mher/flower/master/docs/screenshots/monitor.png

更多screenshots

获取帮助

请转到irc.freenode.net上的芹菜irc频道或 open an issue

贡献

如果您想贡献,只需分叉the repository,提交 更改,运行测试(python-m tests)并发送一个pull请求。 一定要加入AUTHORS

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java HttpClient:禁用分块编码   java在Junit 4中构建测试套件   安卓 studio活动之间的java进度条   java从云Firestore获取地图数据   AmazonWebServices为什么JavaWebSocket服务器这么慢?   java My代码违反了DRY原则,但不确定如何进行重构   java在Eclipse动态Web项目中包含HTML文件   java检查首次启动安卓时是否在活动上单击了按钮   用@XmlElementRef注释的java元素没有显示在JAXB编组字符串中?   线程“main”java中的eclipse异常。lang.ClassNotFoundException:oracle。jdbc。OracleDriver Jdbctype4test。类型4测试。main(Type4test.java:21)   java如何将表单数据从HTML提交到某人的Skype帐户   java如何使用图形“g”?   java构建文件不是gradle中设置文件定义的构建的一部分   java用迭代优化HashMap   java在jsp中使用jstl访问结果集   java实现OOP中的等式优先度   java ChromeDriver组织。openqa。硒。遥远的协议握手会话   用Java程序读取Java的属性文件   java TabHost和Fonthouse图标   在Java中将灰度转换为颜色渐变?