airflow
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAirflow 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
工具速查
| Tool | Purpose |
|---|---|
| List active (unpaused) DAGs |
| List paused DAGs |
| Show running or queued DAG runs |
| Pause a DAG |
| Unpause a DAG |
| Trigger a DAG run |
| List DAG runs for a DAG |
| Daily run history for a DAG |
| Failed runs across DAGs |
| Full analysis of latest run (tasks, logs, source) |
| Full analysis of a specific run |
| Retrieve DAG source code |
| Open DAG view panel |
| Open log view panel |
| Open connections panel |
| Open variables panel |
| Open providers panel |
| Open configs panel |
| Open plugins panel |
| Open server health panel |
| 工具 | 用途 |
|---|---|
| 列出活跃(未暂停)的DAG |
| 列出已暂停的DAG |
| 显示正在运行或排队的DAG任务 |
| 暂停指定DAG |
| 恢复指定DAG |
| 触发DAG任务运行 |
| 列出指定DAG的所有运行记录 |
| 指定DAG的每日运行历史 |
| 跨DAG查看所有失败的运行任务 |
| 对最新运行任务进行全面分析(包含任务、日志、源码) |
| 对特定运行任务进行全面分析 |
| 获取DAG源码 |
| 打开DAG查看面板 |
| 打开日志查看面板 |
| 打开连接配置面板 |
| 打开变量配置面板 |
| 打开插件提供者面板 |
| 打开配置面板 |
| 打开插件面板 |
| 打开服务器健康状态面板 |
User Intent Patterns
用户意图与对应工具
DAG Operations
DAG操作
- "List all DAGs" -> and
list_active_dagslist_paused_dags - "Show DAG source" ->
get_dag_source_code - "Pause DAG X" ->
pause_dag - "Resume DAG X" ->
unpause_dag
- "列出所有DAG" -> 和
list_active_dagslist_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?" -> or
analyse_dag_latest_runget_dag_run_detail
- "触发DAG X运行" ->
trigger_dag_run - "查看近期运行记录" ->
get_dag_runs - "为什么运行失败?" -> 或
analyse_dag_latest_runget_dag_run_detail
Logs and Troubleshooting
日志与故障排查
- "Show logs for task" -> or
go_to_dag_log_viewanalyse_dag_latest_run - "Analyze latest run" ->
analyse_dag_latest_run
- "查看任务日志" -> 或
go_to_dag_log_viewanalyse_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
排查失败的运行任务
- Find failures:
get_failed_runs - Analyze latest run:
analyse_dag_latest_run - If a specific run ID is known:
get_dag_run_detail - Open logs if needed:
go_to_dag_log_view
- 查找失败任务:
get_failed_runs - 分析最新运行任务:
analyse_dag_latest_run - 若已知特定运行ID:
get_dag_run_detail - 必要时打开日志:
go_to_dag_log_view
Trigger and Monitor
触发与监控任务
- Trigger:
trigger_dag_run - Check status:
get_dag_runs - Analyze if failed:
analyse_dag_latest_run
- 触发运行:
trigger_dag_run - 检查状态:
get_dag_runs - 若失败则分析:
analyse_dag_latest_run
Morning Health Check
日常健康检查
- Check server health:
go_to_server_health_view - Check running DAGs:
get_running_dags - Review recent failures:
get_failed_runs
- 检查服务器健康状态:
go_to_server_health_view - 查看正在运行的DAG:
get_running_dags - 查看近期失败任务:
get_failed_runs