eladkal commented on issue #18918:
URL: https://github.com/apache/airflow/issues/18918#issuecomment-986724879


   Your code indeed not working but this code do work:
   
   ```
   with DAG(
       dag_id='future_dag2',
       start_date=datetime(2021, 1, 1),
       schedule_interval=timedelta(weeks=1),
   ) as dag:
   
       DummyOperator(
           task_id='dummy'
       )
   ```
   
   Using dynamic start date isn't recommended it can caused weird issues. We 
explain this is the 
[docs](https://airflow.apache.org/docs/apache-airflow/stable/faq.html#what-s-the-deal-with-start-date).


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

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to