Skip to content

add DurationOption type for duration-type config options #18698

@tdyas

Description

@tdyas

There are several Pants options which take an integer value (of varying time units) in order to configure duration-related configuration like timeout duration. Some of the options use seconds, others use milliseconds. In some cases, the time unit is encoded into the option name (-millis suffix).

To reduce user confusion, we should add a DurationOption type for these options which could take human-readable time syntax, for example 2mins30secs or 1234ms and just convert to a single type internally.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions