Skip to main content

PlayBook

YouQu 任务调度系统

安装

pip3 install playbook-youqu

运行

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,
      "device": "USB"
    },
    {
      "app_name": "kernel",
      "git_url": "git_url",
      "git_branch": "at-develop/v25",
      "framework": "youqu3",
      "split_run": false,
      "order": 2,
      "device": null
    },
    ...
  ],
  "clients": [
    {
      "host": "uos@10.8.xx.xx",
      "device": "USB"
    },
    {
      "host": "uos@10.8.xx.xx",
      "device": null
    },
    ...
  ],
  "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。
    • device: 外设标签
  • 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 密码,用于获取任务。

流程示意图

Metadata

Release files for playbook-youqu 2025.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for playbook-youqu 2025.8.1
File Size Uploaded
playbook_youqu-2025.8.1.tar.gz 92.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for playbook-youqu 2025.8.1
File Interpreter ABI Platform
playbook_youqu-2025.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 108.8 kB

Release files / playbook_youqu-2025.8.1.tar.gz

Download URL playbook_youqu-2025.8.1.tar.gz
Size 92.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a89eb092e661c5a9d796d3c61e5471a3f4fbd4954a659517164717df76459ee6
BLAKE2b-256 checksum
How to use checksums
8f64e75c1c4a332661555838c49ad5b122769a0ec65864a094207a20b37b1bbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.3

Release files / playbook_youqu-2025.8.1-py3-none-any.whl

Download URL playbook_youqu-2025.8.1-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5df7a9eba20eed1c4d6f487c67c71cecae7a8e2dad1ee673e6721b3c614a43f7
BLAKE2b-256 checksum
How to use checksums
0e4fa33e31497665ca52b5cb71b260ad7249cb67b8644486380ad4acb5da73ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

2025.8.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page