You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/03/29 15:47:33 UTC

[GitHub] [airflow] dimberman opened a new issue #7976: Deferred DAG assignment breaks with default_args

dimberman opened a new issue #7976: Deferred DAG assignment breaks with default_args
URL: https://github.com/apache/airflow/issues/7976
 
 
   
   
   **Apache Airflow version**: None
   
   Ticket was created 05/Jan/17 14:48
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   **What happened**:
   
   Deferred DAG assignment raises AirflowException if the dag has default_args instead of start_date:
   
   
   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
   
   **What you expected to happen**:
   
   
   **How to reproduce it**:
   
   
   **Anything else we need to know**:
   
   Moved here from https://issues.apache.org/jira/browse/AIRFLOW-733
       

----------------------------------------------------------------
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


With regards,
Apache Git Services