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/10/06 15:05:35 UTC

[GitHub] [airflow] rubbengimenez commented on issue #13322: Backfill crashes with "KeyError: TaskInstanceKey" when task has retries

rubbengimenez commented on issue #13322:
URL: https://github.com/apache/airflow/issues/13322#issuecomment-936457291


   Hi guys!
   
   Just for those who are facing this issue when debugging a DAG with DebugExecutor.
   
   If you change your start_date and use the function days_ago instead of passing a datetime it seems to work fine (although I don't know the reasons behing this behaviour...):
   
   ```python
   from airflow.utils.dates import days_ago
   
   default_args = {
       'owner': 'owner',
       # 'start_date': datetime(2021, 10, 5, 7, 45, 0, 0, tzinfo=TZINFO), 
       'start_date': days_ago(1), 
       'email': ['blabla@email.com'],
       'email_on_failure': False,
       'email_on_retry':   False,
       'retries': 2
   }
   ```
   


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