我在气流中创建了一个 DAG,它使用 test 和 backfill 命令成功运行,但是当我从气流 UI 手动运行它时出错。我的问题有什么解决办法吗?注意,DAG 在 LocalExecutor 中运行。
UI 气流中的错误日志:
*** Log file isn't local.
*** Fetching here: http://:8793/log/test/start/2017-10-31T09:14:32.378718
*** Failed to fetch log file from worker.
*** Reading remote logs...
*** Unsupported remote log location.
代码 DAG:
from airflow.models import DAG
from airflow.operators.dummy_operator import DummyOperator
from datetime import datetime, timedelta
DAG_NAME = 'test'
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2017, 10, 17),
'email': ['abc@abc.com'],
'email_on_failure': False,
'email_on_retry': False,
'retries': 1,
'retry_delay': timedelta(minutes=5),
}
with DAG(DAG_NAME, schedule_interval=timedelta(days=1),
default_args=args) as dag:
start = DummyOperator(
task_id='start')
end = DummyOperator(
trigger_rule='one_success',
task_id='end')
start >> end
谢谢。