Airflow 在命令行中测试Dag

Airflow 在命令行中测试Dag,airflow,Airflow,在的《气流手册》中,我发现我可以运行类似以下的程序来测试特定的任务: airflow test dag_id task_id 当我这么做的时候,我只收到了这样一条信息: [2018-07-10 18:29:54,346] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt [2018-07-10 18:29:54,367] {driver.py:120} INF

在的《气流手册》中,我发现我可以运行类似以下的程序来测试特定的任务:

airflow test dag_id task_id
当我这么做的时候,我只收到了这样一条信息:

[2018-07-10 18:29:54,346] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[2018-07-10 18:29:54,367] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
[2018-07-10 18:29:54,477] {__init__.py:45} INFO - Using executor SequentialExecutor
[2018-07-10 18:29:54,513] {models.py:189} INFO - Filling up the DagBag from /var/lib/airflow/dags

看起来它并不是真的在运行它。我被误解了吗?或者有其他方法在本地运行DAG吗?

我从您链接到的页面中的段落复制了这个示例调用:

# command layout: command subcommand dag_id task_id date

# testing print_date
airflow test tutorial print_date 2015-06-01

# testing sleep
airflow test tutorial sleep 2015-06-01

因此,只需包含如上所示的日期,DAG任务应按预期运行。

我从您链接到的页面中的段落复制了此示例调用:

# command layout: command subcommand dag_id task_id date

# testing print_date
airflow test tutorial print_date 2015-06-01

# testing sleep
airflow test tutorial sleep 2015-06-01
因此,只需包含如上所示的日期,DAG任务应按预期运行