任务编排 XingQiao(星桥)
1 前言
1.1 架构
+---------------+ +---------------+
| xingqiao1 | | xingqiao2 | [星桥连月] 流程编排
+------+--------+ +-------+-------+
| |
| |
+------V-------------------------V-------+
| +------------+ +MQ----------+ |
| | MySQL | | Redis | |
| +------------+ +------^-----+ |
+--------------------------------|-------+
|
|
|
+--------------------------------+--------+
| +-----------------------------------+ |
| | paoding | | [庖丁解牛] 大 key、热 key 分析
| +-----------------------------------+ |
| +-----------------------------------+ |
| | qingnang | | [青囊回春] 服务自愈
| +-----------------------------------+ |
| +-----------------------------------+ |
| | yiye | | [一叶知秋] 异地多活探测
| +-----------------------------------+ |
| +-----------------------------------+ |
| | ... | |
| +-----------------------------------+ |
+-----------------------------------------+
1.2 场景
2 部署
2.1 建表
2.2 配置
2.3 应用
3 编写 taskflow 插件
3.1 插件路径
3.2 插件例子
3.2.1 demo_ping

3.2.2 demo_hello(workflow 运行时动态传参)

3.2.3 demo_hello_params(创建任务时指定 task 参数)
3.2.4 demo_ping_notifier
3.2.5 demo_hello_lock
3.3 task 传参
4 taskflow 接口
4.1 taskflow job
4.1.1 job 创建
Headers
Name
Type
Description
Request Body
Name
Type
Description
4.1.2 job 删除
Request Body
Name
Type
Description
4.1.3 job 重试
Request Body
Name
Type
Description
4.1.4 job 列表
Query Parameters
Name
Type
Description
4.1.5 job 详情
Query Parameters
Name
Type
Description
4.2 taskflow task
4.2.1 task list
4.2.2 task 详情
4.3 taskflow job dot 图
4.3.1 获取 job dot 图

4.4 taskflow job report
4.4.1 成功率
4.4.2 tag 分布
4.4.3 错误码分布
5 实践
5.1 build_meta 步骤
5.2 handler 重试
Last updated