python任务调度可视化_[调度]可视化的调度架构-Dagobah

Dagobah 简介

Dagobash 是用 python 编写的一个简单的基于依赖关系的作业调度器。 Dagobah 允许你使用 Cron 语法安排调度工作,你可以非常简单的通过 web 界面点击拖动来定义每个工作的一系列任务的依赖关系。

Dagobash 可以让你重试失败的单个任务,给你发送有用的工作任务成功和失败的报告,并且可以在多种后台持久化你的数据,这样你就不用担心你的数据丢失了。

github 项目地址:Dagobah

安装

我的基础环境:

mac os

Python 2.7

mongo 3.2.3

安装过程

pip install pymongo

dagobahd 安装

pip install dagobah

启动 dagobah

dagobah dagobah 的默认端口是 9000

在启动的时候,其会生成一个配置文件 ~/.dagobahd.yml

# host and port for the Flask app. set host to 0.0.0.0 to listen on all IPs

host: 127.0.0.1

port: 9000

# the app's secret key, used for maintaining user sessions

# WARNING: change this to your own random value!

# an easy way to create a key with python is "import os; os.urandom(24)"

app_secret: 'g\xde\xf5\x06@K\xf5:\x1fmZ\xac\x1fO\xe8\xcd\xde\xcf\x90\xaeY7\x8c\x96'

# credentials for single-user auth

auth_disabled: False

password: dagobah

# choose one of the available backends

# None: Dagobah will not use a backend to permanently store data

# sqlite: use a SQLite database. see the SQLite section in this file

# mongo: store results in MongoDB. see the MongoBackend section in this file

backend: sqlite

# choose one of the available email templates

# None: Dagobah won't send you emails when a job finishes or fails

# text: Simple text format

# basic: Simple, tabular HTML email

email: basic

Logging:

# change to False to disable logging entirely

enabled: True

# specify a full path to the log file

# alternatively, specify "default

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值