docs: work pool + Gitee pull deployment model

This commit is contained in:
yeuimu
2026-07-23 08:27:36 +00:00
parent 3e32238a1e
commit d48034f27a
2 changed files with 61 additions and 44 deletions
+43 -39
View File
@@ -1,78 +1,82 @@
prefect-version: 3.7.8
name: inkreach-prefect
# 每次 flow run 前:从 Gitee clone 最新代码(token 运行时从 Secret 解析,不落盘)
pull:
- prefect.deployments.steps.git_clone:
repository: "https://oauth2:{{ prefect.blocks.secret.gitee-token }}@gitee.com/inkreachZLL/inkreach-prefect.git"
repository: https://oauth2:{{ prefect.blocks.secret.gitee-token }}@gitee.com/inkreachZLL/inkreach-prefect.git
branch: master
defaults:
work_pool:
name: inkreach-pool
deployments:
# ---------- RIIN ----------
- name: riin-order-sync
entrypoint: flows/riin/order_sync.py:riin_order_sync
work_pool:
name: inkreach-pool
- name: riin-incremental-sync
entrypoint: flows/riin/incremental_sync.py:riin_incremental_sync
schedules:
- cron: "0 * * * *"
timezone: "Asia/Shanghai"
- cron: 0 * * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: riin-recent-sync
entrypoint: flows/riin/recent_sync.py:riin_recent_sync
schedules:
- cron: "30 * * * *"
timezone: "Asia/Shanghai"
- cron: 30 * * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: riin-refresh-pending
entrypoint: flows/riin/refresh_pending.py:riin_refresh_pending
schedules:
- cron: "0 */3 * * *"
timezone: "Asia/Shanghai"
- cron: 0 */3 * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: riin-by-orders-sync
entrypoint: flows/riin/by_orders.py:riin_by_orders_sync
work_pool:
name: inkreach-pool
- name: riin-verify
entrypoint: flows/riin/verify.py:riin_verify
schedules:
- cron: "0 6 * * *"
timezone: "Asia/Shanghai"
# ---------- SDS ----------
- cron: 0 6 * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: sds-order-sync
entrypoint: flows/sds/order_sync.py:sds_order_sync
work_pool:
name: inkreach-pool
- name: sds-incremental-sync
entrypoint: flows/sds/incremental_sync.py:sds_incremental_sync
schedules:
- cron: "15 * * * *"
timezone: "Asia/Shanghai"
- cron: 15 * * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: sds-recent-sync
entrypoint: flows/sds/recent_sync.py:sds_recent_sync
schedules:
- cron: "45 * * * *"
timezone: "Asia/Shanghai"
- cron: 45 * * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: sds-refresh-pending
entrypoint: flows/sds/refresh_pending.py:sds_refresh_pending
schedules:
- cron: "0 */2 * * *"
timezone: "Asia/Shanghai"
- cron: 0 */2 * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: sds-refresh-100-prefix
entrypoint: flows/sds/refresh_100_prefix.py:sds_refresh_100_prefix
schedules:
- cron: "30 */2 * * *"
timezone: "Asia/Shanghai"
- cron: 30 */2 * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: sds-verify
entrypoint: flows/sds/verify.py:sds_verify
schedules:
- cron: "0 7 * * *"
timezone: "Asia/Shanghai"
- cron: 0 7 * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool