rustikk opened a new issue #20471:
URL: https://github.com/apache/airflow/issues/20471


   ### Apache Airflow version
   
   2.2.2
   
   ### What happened
   
   When you set an 'end_date' that is after the date for the dag parameter 
'end_date' the task fails and no logs are given to the user.
   
   ### What you expected to happen
   
   I expected the task to succeed with an 'end_date' of the date specified at 
the task level.
   
   ### How to reproduce
   
   from airflow.models import DAG
   from airflow.operators.python import PythonOperator
   from datetime import datetime
   
   def this_passes():
       pass
   
   with DAG(
       dag_id="end_date",
       schedule_interval=None,
       start_date=datetime(2021, 1, 1),
       end_date=datetime(2021, 1, 2),
       tags=["dagparams"],
   ) as dag:
   
       t1 = PythonOperator(
           task_id="passer",
           python_callable=this_passes,
           end_date=datetime(2021, 2, 1),
       )
   
   
   ### Operating System
   
   Docker (debian:buster)
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other Docker-based deployment
   
   ### Deployment details
   
   Using the astro cli with docker image:
   quay.io/astronomer/ap-airflow:2.2.2-buster-onbuild
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to