You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/27 18:49:00 UTC

[jira] [Commented] (AIRFLOW-733) Deferred DAG assignment breaks with default_args

    [ https://issues.apache.org/jira/browse/AIRFLOW-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16983819#comment-16983819 ] 

ASF GitHub Bot commented on AIRFLOW-733:
----------------------------------------

stale[bot] commented on pull request #5598: [AIRFLOW-733][AIRFLOW-883] Apply default_args when setting `op.dag = dag` or `dag >> op`
URL: https://github.com/apache/airflow/pull/5598
 
 
   
 
----------------------------------------------------------------
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:
users@infra.apache.org


> 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
(v8.3.4#803005)