Skip to main content

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: 应用框架,用于区分应用框架,可选值有 youqu2youqu3,分别对应 youqu2youqu3 框架。
    • 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


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.15.tar.gz (94.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

youqu_playbook-2024.12.15-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file youqu_playbook-2024.12.15.tar.gz.

File metadata

  • Download URL: youqu_playbook-2024.12.15.tar.gz
  • Upload date:
  • Size: 94.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.3

File hashes

Hashes for youqu_playbook-2024.12.15.tar.gz
Algorithm Hash digest
SHA256 609aec254a2f47a281b4a74401ebd2dc6d4b2fcc0ddc9cbf7ab41c1156c27a74
MD5 5385d5bd034fd264739ad7681061f256
BLAKE2b-256 f18b5bb0452585b5c95d0c7c0e16846d1ff862b0925c07061ecb59bb2cd62e5e

See more details on using hashes here.

File details

Details for the file youqu_playbook-2024.12.15-py3-none-any.whl.

File metadata

File hashes

Hashes for youqu_playbook-2024.12.15-py3-none-any.whl
Algorithm Hash digest
SHA256 60a2e7fa7542fa60ed477c4f0f1f8d2b37752fc9bc818d8e3a4df66c2feb35e5
MD5 8bea9360cae8f8751216347a4b038c02
BLAKE2b-256 7cd5f2315007dd22ee8af13ef794e4808d22c2b5b9e8113560329933ead4afe0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page