andrenerd opened a new issue #19037:
URL: https://github.com/apache/airflow/issues/19037


   ### Description
   
   Let's set the "replace_microseconds" default param to False:
   
   
https://github.com/apache/airflow/blob/5dd690b57a20ca944deb8d96e89ec6ae6161afeb/airflow/api/common/experimental/trigger_dag.py#L36
   
   
   ### Use case/motivation
   
   Using `trigger_dag` instead of the api call to trigger new dag run is pretty 
handful. Except one little thing, it's always needed to set 
"replace_microseconds" to False manually. 
   
   When doing the same things via the api, it doesn't filter out 
"microseconds". So it would be probably reasonable to keep the same default 
behaviour for the `trigger_dag` function, ie not replacing microseconds.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] 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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to