airflow

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Airflow Operations

Airflow 操作

Use the Airflow VS Code extension tools for all Airflow interactions. Avoid shell commands for Airflow operations.
所有Airflow交互操作请使用Airflow VS Code扩展工具,避免使用shell命令执行Airflow操作。

Tool Quick Reference

工具速查

ToolPurpose
list_active_dags
List active (unpaused) DAGs
list_paused_dags
List paused DAGs
get_running_dags
Show running or queued DAG runs
pause_dag
Pause a DAG
unpause_dag
Unpause a DAG
trigger_dag_run
Trigger a DAG run
get_dag_runs
List DAG runs for a DAG
get_dag_history
Daily run history for a DAG
get_failed_runs
Failed runs across DAGs
analyse_dag_latest_run
Full analysis of latest run (tasks, logs, source)
get_dag_run_detail
Full analysis of a specific run
get_dag_source_code
Retrieve DAG source code
go_to_dag_view
Open DAG view panel
go_to_dag_log_view
Open log view panel
go_to_connections_view
Open connections panel
go_to_variables_view
Open variables panel
go_to_providers_view
Open providers panel
go_to_configs_view
Open configs panel
go_to_plugins_view
Open plugins panel
go_to_server_health_view
Open server health panel
工具用途
list_active_dags
列出活跃(未暂停)的DAG
list_paused_dags
列出已暂停的DAG
get_running_dags
显示正在运行或排队的DAG任务
pause_dag
暂停指定DAG
unpause_dag
恢复指定DAG
trigger_dag_run
触发DAG任务运行
get_dag_runs
列出指定DAG的所有运行记录
get_dag_history
指定DAG的每日运行历史
get_failed_runs
跨DAG查看所有失败的运行任务
analyse_dag_latest_run
对最新运行任务进行全面分析(包含任务、日志、源码)
get_dag_run_detail
对特定运行任务进行全面分析
get_dag_source_code
获取DAG源码
go_to_dag_view
打开DAG查看面板
go_to_dag_log_view
打开日志查看面板
go_to_connections_view
打开连接配置面板
go_to_variables_view
打开变量配置面板
go_to_providers_view
打开插件提供者面板
go_to_configs_view
打开配置面板
go_to_plugins_view
打开插件面板
go_to_server_health_view
打开服务器健康状态面板

User Intent Patterns

用户意图与对应工具

DAG Operations

DAG操作

  • "List all DAGs" ->
    list_active_dags
    and
    list_paused_dags
  • "Show DAG source" ->
    get_dag_source_code
  • "Pause DAG X" ->
    pause_dag
  • "Resume DAG X" ->
    unpause_dag
  • "列出所有DAG" ->
    list_active_dags
    list_paused_dags
  • "查看DAG源码" ->
    get_dag_source_code
  • "暂停DAG X" ->
    pause_dag
  • "恢复DAG X" ->
    unpause_dag

Run Operations

运行任务操作

  • "Trigger DAG X" ->
    trigger_dag_run
  • "Show recent runs" ->
    get_dag_runs
  • "Why did this fail?" ->
    analyse_dag_latest_run
    or
    get_dag_run_detail
  • "触发DAG X运行" ->
    trigger_dag_run
  • "查看近期运行记录" ->
    get_dag_runs
  • "为什么运行失败?" ->
    analyse_dag_latest_run
    get_dag_run_detail

Logs and Troubleshooting

日志与故障排查

  • "Show logs for task" ->
    go_to_dag_log_view
    or
    analyse_dag_latest_run
  • "Analyze latest run" ->
    analyse_dag_latest_run
  • "查看任务日志" ->
    go_to_dag_log_view
    analyse_dag_latest_run
  • "分析最新运行任务" ->
    analyse_dag_latest_run

System and Config

系统与配置

  • "Show connections" ->
    go_to_connections_view
  • "Show variables" ->
    go_to_variables_view
  • "Check server health" ->
    go_to_server_health_view
  • "查看连接配置" ->
    go_to_connections_view
  • "查看变量配置" ->
    go_to_variables_view
  • "检查服务器健康状态" ->
    go_to_server_health_view

Common Workflows

常见工作流

Investigate a Failed Run

排查失败的运行任务

  1. Find failures:
    get_failed_runs
  2. Analyze latest run:
    analyse_dag_latest_run
  3. If a specific run ID is known:
    get_dag_run_detail
  4. Open logs if needed:
    go_to_dag_log_view
  1. 查找失败任务:
    get_failed_runs
  2. 分析最新运行任务:
    analyse_dag_latest_run
  3. 若已知特定运行ID:
    get_dag_run_detail
  4. 必要时打开日志:
    go_to_dag_log_view

Trigger and Monitor

触发与监控任务

  1. Trigger:
    trigger_dag_run
  2. Check status:
    get_dag_runs
  3. Analyze if failed:
    analyse_dag_latest_run
  1. 触发运行:
    trigger_dag_run
  2. 检查状态:
    get_dag_runs
  3. 若失败则分析:
    analyse_dag_latest_run

Morning Health Check

日常健康检查

  1. Check server health:
    go_to_server_health_view
  2. Check running DAGs:
    get_running_dags
  3. Review recent failures:
    get_failed_runs
  1. 检查服务器健康状态:
    go_to_server_health_view
  2. 查看正在运行的DAG:
    get_running_dags
  3. 查看近期失败任务:
    get_failed_runs