uranusjr commented on a change in pull request #17122:
URL: https://github.com/apache/airflow/pull/17122#discussion_r673915763
##########
File path: airflow/api_connexion/endpoints/dag_run_endpoint.py
##########
@@ -242,24 +242,34 @@ def post_dag_run(dag_id, session):
except ValidationError as err:
raise BadRequest(detail=str(err))
+ try:
+ schedule_date = post_body.pop("schedule_date")
+ except KeyError:
+ schedule_date = post_body.pop("execution_date")
+
Review comment:
`DagRun` does not accept `schedule_date` as a keyword argument (yet), so
either we need to modify `post_body` or we can’t use `DagRun(..., **post_body)`.
--
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]