You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/19 17:04:26 UTC
[GitHub] [airflow] jessmchung opened a new issue, #25836: Support overriding `replace_microseconds` parameter for `airflow dags trigger` CLI command
jessmchung opened a new issue, #25836:
URL: https://github.com/apache/airflow/issues/25836
### Description
`airflow dags trigger` CLI command always defaults with `replace_microseconds=True` because of the default value in the API. It would be very nice to be able to control this flag from the CLI.
### Use case/motivation
We use AWS MWAA. The exposed interface is Airflow CLI (yes, we could also ask to get a different interface from AWS MWAA, but I think this is something that was just overlooked for the CLI?), which does not support overriding `replace_microseconds` parameter when calling `airflow dags trigger` CLI command.
For the most part, our dag runs for a given dag do not happen remotely at the same time. However, based on user behavior, they are sometimes triggered within the same second (albeit not microsecond). The first dag run is successfully triggered, but the second dag run fails the `replace_microseconds` parameter is wiping out the microseconds that we pass. Thus, DagRun.find_duplicates returns True for the second dag run that we're trying to trigger, and this raises the `DagRunAlreadyExists` exception.
### Related issues
Not quite - they all seem to be around the experimental api and not directly related to the CLI.
### 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-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #25836: Support overriding `replace_microseconds` parameter for `airflow dags trigger` CLI command
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #25836:
URL: https://github.com/apache/airflow/issues/25836#issuecomment-1229009404
Assigned you.
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #25836: Support overriding `replace_microseconds` parameter for `airflow dags trigger` CLI command
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #25836:
URL: https://github.com/apache/airflow/issues/25836#issuecomment-1229009302
Feel free to add it @jessmchung
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] MrParosk commented on issue #25836: Support overriding `replace_microseconds` parameter for `airflow dags trigger` CLI command
Posted by GitBox <gi...@apache.org>.
MrParosk commented on issue #25836:
URL: https://github.com/apache/airflow/issues/25836#issuecomment-1312663363
@uranusjr created a PR for it (https://github.com/apache/airflow/pull/27640)
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk closed issue #25836: Support overriding `replace_microseconds` parameter for `airflow dags trigger` CLI command
Posted by GitBox <gi...@apache.org>.
potiuk closed issue #25836: Support overriding `replace_microseconds` parameter for `airflow dags trigger` CLI command
URL: https://github.com/apache/airflow/issues/25836
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] boring-cyborg[bot] commented on issue #25836: Support overriding `replace_microseconds` parameter for `airflow dags trigger` CLI command
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #25836:
URL: https://github.com/apache/airflow/issues/25836#issuecomment-1220897176
Thanks for opening your first issue here! Be sure to follow the issue template!
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org