YouQu Task Scheduling Framework
Project description
PlayBook
YouQu 任务调度系统
安装
pip3 install youqu-playbook
运行
playbook -p path/to/json/file.json
# 如果提示找不到命令,请检查是否在 PATH 中添加了 Python 的 bin 目录。
export PATH=$PATH:$HOME/.local/bin
输入JSON配置文件
JSON 配置示例:
{
"apps": [
{
"app_name": "autotest_dde_file_manager",
"git_url": "git_url",
"git_branch": "at-develop/eagle",
"framework": "youqu2",
"split_run": true,
"order": 1
},
{
"app_name": "kernel",
"git_url": "git_url",
"git_branch": "at-develop/v25",
"framework": "youqu3",
"split_run": false,
"order": 2
},
...
],
"clients": [
"uos@10.8.xx.xx",
"uos@10.8.xx.xx",
...
],
"tags": "xxxx",
"task_id": "xxxx",
"json_backfill_base_url": "xxxx",
"json_backfill_user": "xxxx",
"json_backfill_password": "xxxx",
"pms_task_id": "xxxx",
"pms_user": "xxxx",
"pms_password": "xxxx"
}
说明:
apps: 应用列表,用于指定运行应用的应用。app_name: 应用名称,对应app_name字段,用于区分应用,例如autotest_dde_file_manager。git_url: 应用 Git 仓库地址,用于下载应用代码。检查git_url是否正确,可以通过git clone ${git_url}命令进行验证。git_branch: 应用 Git 分支,用于下载应用代码,例如at-develop/eagle。framework: 应用框架,用于区分应用框架,可选值有youqu2和youqu3,分别对应youqu2和youqu3框架。split_run: 是否启用多线程运行,boolean 类型, 默认为false。order: 应用运行顺序,int 类型,默认为 1。
clients: 客户端列表,用于指定运行应用的客户端。tags: 任务标签,用于区分任务。task_id: 任务 ID,用于区分任务。json_backfill_base_url: 数据回填地址。json_backfill_user: 数据回填用户名。json_backfill_password: 数据回填密码。pms_task_id: PMS 任务 ID,用于获取任务。pms_user: PMS 用户名,用于获取任务。pms_password: PMS 密码,用于获取任务。
流程示意图
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
youqu_playbook-2024.12.10.tar.gz
(93.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file youqu_playbook-2024.12.10.tar.gz.
File metadata
- Download URL: youqu_playbook-2024.12.10.tar.gz
- Upload date:
- Size: 93.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce4cf10ee2e175b314d27af7b849c7c3530eb8af8c29a65acfb7edf0bd406b03
|
|
| MD5 |
7558d0367e4926013c20067382990812
|
|
| BLAKE2b-256 |
847e635caf0b5910ac329a0b236f1b53523091f360abc57a63bd3c7b8453be79
|
File details
Details for the file youqu_playbook-2024.12.10-py3-none-any.whl.
File metadata
- Download URL: youqu_playbook-2024.12.10-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b27515c8d6ba449f7e86bdc56124e238fd2bff5bbe60061859da1f1a5712c58
|
|
| MD5 |
7533a026fe6461542fa1f8399efb9adc
|
|
| BLAKE2b-256 |
09609269fdfcaf4354404609b61ba700d4d4bba12bd4c33681f021f330cd96d6
|