[ 
https://issues.apache.org/jira/browse/AIRFLOW-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ash Berlin-Taylor reassigned AIRFLOW-733:
-----------------------------------------

    Assignee: Ash Berlin-Taylor

> 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
>            Assignee: Ash Berlin-Taylor
>            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
(v7.6.14#76016)

Reply via email to