atul-astronomer opened a new issue, #46754:
URL: https://github.com/apache/airflow/issues/46754

   ### Apache Airflow version
   
   3.0.0a1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   The DAG has failed for the reason "The key 'start_date' in args is a part of 
kwargs and therefore reserved."
   
   ```javascript
   {"timestamp":"2025-02-14T07:25:07.539637","level":"error","event":"Task 
failed with 
exception","logger":"task","error_detail":[{"exc_type":"ValueError","exc_value":"The
 key 'start_date' in args is a part of kwargs and therefore 
reserved.","syntax_error":null,"is_cause":false,"frames":[{"filename":"/opt/airflow/task_sdk/src/airflow/sdk/execution_time/task_runner.py","lineno":592,"name":"run"},{"filename":"/opt/airflow/task_sdk/src/airflow/sdk/execution_time/task_runner.py","lineno":699,"name":"_execute_task"},{"filename":"/opt/airflow/airflow/models/baseoperator.py","lineno":173,"name":"wrapper"},{"filename":"/opt/airflow/providers/standard/src/airflow/providers/standard/operators/python.py","lineno":185,"name":"execute"},{"filename":"/opt/airflow/providers/standard/src/airflow/providers/standard/operators/python.py","lineno":205,"name":"determine_kwargs"},{"filename":"/opt/airflow/airflow/utils/operator_helpers.py","lineno":178,"name":"determine"}]}]}
   ``` 
   
   ### What you think should happen instead?
   
   The DAG should pass as its passing for AF2.
   
   ### How to reproduce
   
   Run below DAG on Airflow 3 tag 3.0.0a3
   
   ```python
   default_args = {
       "owner": "airflow",
   }
   
   with DAG(
       dag_id="compare_pendulum_datetime2",
       default_args=default_args,
       start_date=start_date,
       schedule=None,
       catchup=False,
       user_defined_macros={
           "future_date": pendulum.datetime(2135, 11, 25)
       },
       tags=['core'],
   ) as dag:
   
       t1 = PythonOperator(
           task_id="subtract_future_and_start_date",
           python_callable=subtractor,
           op_args=[str(start_date), '{{ future_date }}']
       )
   
   t1
   ``` 
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### 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