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/11/22 16:49:48 UTC

[GitHub] [airflow] yevsh edited a comment on issue #17395: DAG is executed twice on submit

yevsh edited a comment on issue #17395:
URL: https://github.com/apache/airflow/issues/17395#issuecomment-975720585


   I Installed 2.2.1
   
   in dag I have:
   schedule_interval=relativedelta(day=1,hour=12,months=+1),
   
   
   from scheduler  I ran:
   
   
   airflow db init
   
   ```
   
   ERROR [airflow.models.dagbag.DagBag] 'relativedelta' object has no attribute 'total_seconds'
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/models/dagbag.py", line 515, in collect_dags
       found_dags = self.process_file(filepath, only_if_updated=only_if_updated, safe_mode=safe_mode)
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/models/dagbag.py", line 298, in process_file
       found_dags = self._process_modules(filepath, mods, file_last_changed_on_disk)
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/models/dagbag.py", line 401, in _process_modules
       dag.timetable.validate()
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/timetables/interval.py", line 274, in validate
       if self._delta.total_seconds() <= 0:
   A**ttributeError: 'relativedelta' object has no attribute 'total_seconds'**
   ```


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