George Sakkis created AIRFLOW-733:
-------------------------------------

             Summary: Deferred DAG assignment breaks with default_args
                 Key: AIRFLOW-733
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-733
             Project: Apache Airflow
          Issue Type: Bug
          Components: models
            Reporter: George Sakkis
            Priority: Minor


Deferred DAG assignment raises {{AirflowException}} if the dag has 
{{default_args}} instead of {{start_date}}:

{noformat}
default_args = {'start_date': datetime(2016, 1, 1)}
dag = DAG('my_dag2', default_args=default_args)
deferred_op = DummyOperator(task_id='dummy')
deferred_op.dag = dag
---------------------------------------------------------------------------
AirflowException                          Traceback (most recent call last)
<ipython-input-7-d9ff2f9c7283> in <module>()
----> 1 deferred_op.dag = dag
...
AirflowException: Task is missing the start_date parameter
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to