西芹花

flower的Python项目详细描述


https://img.shields.io/pypi/v/flower.svghttps://travis-ci.org/mher/flower.svg?branch=master

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

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

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

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

安装

PyPI版本:

$ pip install flower

开发版本:

$ pip install https://github.com/mher/flower/zipball/master

用法

启动服务器并打开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//

或者使用unix套接字文件运行:

$ flower --unix_socket=/tmp/flower.sock

文档

文档可在Read the DocsIPython Notebook Viewer找到

许可证

Flower根据BSD 3条款许可证获得许可。查看许可文件 在顶级分发目录中获取完整的许可证文本

获取帮助

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

贡献

如果您想贡献,只需分叉the repository,提交 更改,运行测试(tox)并发送拉取请求。 一定要加入CONTRIBUTORS

如果您有兴趣维护项目,请联系。

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

推荐PyPI第三方库


热门话题
java WebClient请求级别超时抛出名为default onErrorDropped的运算符   java JAXB外部绑定文件错误   Freemarker中的java转义宏参数值   java正在同步来自不同对象{已编辑}的线程   java如何在另一个类上更新活动中的元素   java Hibernate连接查询   java可以使用Apache Crunch创建类似于图形的数据结构吗?   java在JLabel的开头加上3个点   java 安卓应用程序显示线程错误   java@RequestBody在Spring中总是空的   java Android异步任务永远不会结束   具有多个属性的java Jaxws枚举   java中的安卓 Stripe InvalidRequestException   多线程java。util。非多线程程序中的ConcurrentModificationException   Minecraft Java插件如何删除HashMap中存储的所有块   空Java字符串的大小   从AJP连接器请求检索Shibboleth属性的java   oracle11g将Java类文件加载到Oracle数据库