GitHub user hskev edited a discussion: Date strings in DAG params
Hi,
Just updated to the latest Airflow from the last 2.x release.
Now getting quite a lot of DAGs coming up with warnings that I'm looking to
resolve.
The warning is:
```
This Dag uses runtime-variable values in Dag construction.
It causes the Dag version to increase as values change on every Dag parse.
```
I understand the cause, but I'm looking for a way to keep the functionality
working the same.
Params have an `output_version` param that defaults to the current date in
`YYMMDD` format, but also allows for user modification to any string (including
alpha characters).
Right now, I'm using the `current_date.format('YYMMDD')` string as a default
value.
What would be the solution that solves the warning, but keeps this
functionality, without adding another task to decide the version?
Thanks!
GitHub link: https://github.com/apache/airflow/discussions/73128
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]