uranusjr opened a new pull request, #74749:
URL: https://github.com/apache/airflow/pull/74749

   @pierrejeambrun reminded me we forgot to implement the timedelta syntax in 
the YAML Dag format. This PR fixes that.
   
   Two format coercions are added (in addition to datetime coercion, already 
implemented and refactored into a more generic code path):
   
   * A human-friendly shorthand duration string, e.g. `1h5m`. This is parsed 
into a `timedelta` unless `y` and `mo` are used (timedelta only supports up to 
days)
   * [ISO 8601 time 
interval](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) with a `P` 
prefix e.g. `P1Y2M10DT2H30M`. This is parsed into a `relativedelta` as 
supported by some Airflow arguments.
   
   Similar to datetime parsing, this only kicks in if an argument is annotated 
to accept either `timedelta` or `relativedelta`.
   
   


-- 
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]

Reply via email to