Durations

Durations are used in the timeout value of a script or in the dispatch_storm_delay_duration value of a task for example. A duration is always encoded as a string. Here are a few examples:

Duration values in the project configuration are strictly validated and the configuration will be rejected if the validation fails.

The rules for parsing a duration can be described as follows: The words and, plus, and the symbol , are ignored. After dropping those words a duration value consists of pairs. Each pair consists of an number (words like one, two and so forth are not allowed) and an English term specifying the unit. The available units can be inspected in the source code: https://github.com/cider-ci/cider-ci_clj-utils/blob/v4/src/cider_ci/utils/duration.clj.