Commit 90f8a9f8 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

update DAG and message template

parent a38a0750
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -3,7 +3,9 @@
    "dag_id": "csst-msc-l1-mbi",
    "dag_run_id": "12345",
    "dataset": "csst-msc-c9-25sqdeg-v3",
    "batch_id": "msc-093-reduction-v2",
    "obsid": "10109300543790",
    "chipid": "09",
    "obs_type": "WIDE",
    "project_id": "none",
    "obs_id": "10100543790",
    "chip_id": "09",
    "batch_id": "csst-msc-c9-25-sqdeg-v3-rdx1"
}
+14 −22
Original line number Diff line number Diff line
# 定义DAG的基本信息
dag_id: "csst-msc-l1-mbi"
  
# 定义任务
- dag_id: diamond
  dag:
    tasks:
  task1:
    - name: QC0
      image: csst-msc-l1-qc0
    tag: latest
    force_pull: true
    bash_command: "python /pipeline/app/run.py {message}"
  task2:
    - name: MBI
      dependencies: [QC0]
      image: csst-msc-l1-mbi
    tag: latest
    force_pull: true
    bash_command: "python /pipeline/app/run.py {message}"
    upstream_tasks: ["task1"]  # 定义依赖关系,task2依赖task1
  task3:
    image: csst-msc-l1-mbi-photmix
    tag: latest
    force_pull: true
    bash_command: "python /pipeline/app/run.py {message}"
    upstream_tasks: ["task2"]  # 定义依赖关系,task3依赖task2
    - name: AST
      dependencies: [QC0]
      image: csst-msc-l1-ast
    - name: SSO
      dependencies: [AST]
      template: csst-msc-l1-ast-sso
 No newline at end of file