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 2021/09/27 23:31:28 UTC

[GitHub] [airflow] t4n1o edited a comment on issue #18541: Error when running dag & something to do with parsing the start date

t4n1o edited a comment on issue #18541:
URL: https://github.com/apache/airflow/issues/18541#issuecomment-928440208


   Would it help if I upgraded airflow to a newer version (2.14)?
   
   The dag I'm running that caused this has `start_date` set to:
   ```
   with DAG(
       'Archives Mirror',
       default_args=default_args,
       description='A simple tutorial DAG',
       schedule_interval=timedelta(days=1),
       start_date=days_ago(2),
       tags=['example'],
   ) as dag:
       t1 = BashOperator(
           task_id='mirror_csv_gz_archives',
           bash_command='set -e; cd /opt/repo/; /opt/repo/venv/bin/python -m path.to.my.mirror_script',
       )
   
   ```
   
   I used days_ago(2) as per this tutorial: https://airflow.apache.org/docs/apache-airflow/stable/tutorial.html


-- 
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-unsubscribe@airflow.apache.org

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