marclamberti commented on issue #12587:
URL: https://github.com/apache/airflow/issues/12587#issuecomment-733677192
@ashb Here it is:
```
*** Reading local file:
/usr/local/airflow/logs/master_dag/trigger_dag/2020-11-24T00:00:00+00:00/2.log
[2020-11-25 12:27:03,944] {taskinstance.py:827} INFO - Dependencies all met
for <TaskInstance: master_dag.trigger_dag 2020-11-24T00:00:00+00:00 [queued]>
[2020-11-25 12:27:03,966] {taskinstance.py:827} INFO - Dependencies all met
for <TaskInstance: master_dag.trigger_dag 2020-11-24T00:00:00+00:00 [queued]>
[2020-11-25 12:27:03,966] {taskinstance.py:1018} INFO -
--------------------------------------------------------------------------------
[2020-11-25 12:27:03,966] {taskinstance.py:1019} INFO - Starting attempt 2
of 2
[2020-11-25 12:27:03,966] {taskinstance.py:1020} INFO -
--------------------------------------------------------------------------------
[2020-11-25 12:27:03,976] {taskinstance.py:1039} INFO - Executing
<Task(TriggerDagRunOperator): trigger_dag> on 2020-11-24T00:00:00+00:00
[2020-11-25 12:27:03,983] {standard_task_runner.py:50} INFO - Started
process 12030 to run task
[2020-11-25 12:27:03,990] {standard_task_runner.py:74} INFO - Running:
['airflow', 'tasks', 'run', 'master_dag', 'trigger_dag',
'2020-11-24T00:00:00+00:00', '--job-id', '4', '--pool', 'default_pool',
'--raw', '--subdir', 'DAGS_FOLDER/master_dag.py', '--cfg-path',
'/tmp/tmp7j08b3yu']
[2020-11-25 12:27:03,991] {standard_task_runner.py:75} INFO - Job 4: Subtask
trigger_dag
[2020-11-25 12:27:04,057] {logging_mixin.py:103} INFO - Running
<TaskInstance: master_dag.trigger_dag 2020-11-24T00:00:00+00:00 [running]> on
host c6e5bbbd7410
[2020-11-25 12:27:04,127] {taskinstance.py:1232} INFO - Exporting the
following env vars:
AIRFLOW_CTX_DAG_OWNER=airflow
AIRFLOW_CTX_DAG_ID=master_dag
AIRFLOW_CTX_TASK_ID=trigger_dag
AIRFLOW_CTX_EXECUTION_DATE=2020-11-24T00:00:00+00:00
AIRFLOW_CTX_DAG_RUN_ID=scheduled__2020-11-24T00:00:00+00:00
[2020-11-25 12:27:04,166] {dagrun_operator.py:134} INFO - Clearing
triggered_dag on 2020-11-24T00:00:00+00:00
[2020-11-25 12:27:04,213] {taskinstance.py:1402} ERROR - local variable
'dag_run' referenced before assignment
Traceback (most recent call last):
File
"/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line
1087, in _run_raw_task
self._prepare_and_execute_task_with_callbacks(context, task)
File
"/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line
1260, in _prepare_and_execute_task_with_callbacks
result = self._execute_task(context, task_copy)
File
"/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line
1306, in _execute_task
result = task_copy.execute(context=context)
File
"/usr/local/lib/python3.7/site-packages/airflow/operators/dagrun_operator.py",
line 156, in execute
dag_run.execution_date,
UnboundLocalError: local variable 'dag_run' referenced before assignment
[2020-11-25 12:27:04,215] {taskinstance.py:1446} INFO - Marking task as
FAILED. dag_id=master_dag, task_id=trigger_dag, execution_date=20201124T000000,
start_date=20201125T122703, end_date=20201125T122704
[2020-11-25 12:27:04,282] {local_task_job.py:118} INFO - Task exited with
return code 1
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]