-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Copy link
Labels
area:corearea:task-execution-interface-aip72AIP-72: Task Execution Interface (TEI) aka Task SDKAIP-72: Task Execution Interface (TEI) aka Task SDKkind:bugThis is a clearly a bugThis is a clearly a bug
Milestone
Description
Apache Airflow version
3.0.0a3
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."
{"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
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 }}']
)
t1Operating 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
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
area:corearea:task-execution-interface-aip72AIP-72: Task Execution Interface (TEI) aka Task SDKAIP-72: Task Execution Interface (TEI) aka Task SDKkind:bugThis is a clearly a bugThis is a clearly a bug
Type
Projects
Status
Done