Skip to content

feat: support duration suffixes for freezing_threshold#399

Merged
marc0olo merged 1 commit intomainfrom
feat/duration-amount-freezing-threshold
Mar 3, 2026
Merged

feat: support duration suffixes for freezing_threshold#399
marc0olo merged 1 commit intomainfrom
feat/duration-amount-freezing-threshold

Conversation

@marc0olo
Copy link
Member

@marc0olo marc0olo commented Mar 3, 2026

Summary

  • Adds a new DurationAmount parser type that accepts human-readable duration suffixes (s, m, h, d, w) alongside raw second values
  • Changes freezing_threshold from u64 to DurationAmount across CLI args, manifest settings, and YAML configuration
  • Updates all documentation, JSON schemas, examples, and tests to use the new format (e.g. 30d instead of 2592000)

Allow freezing_threshold to be specified with human-readable duration
suffixes (s, m, h, d, w) in addition to raw seconds. For example,
"30d" instead of 2592000. This is implemented via a new DurationAmount
parser type, consistent with existing CyclesAmount and MemoryAmount.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@marc0olo marc0olo requested a review from a team as a code owner March 3, 2026 14:26
@marc0olo marc0olo merged commit 0639f59 into main Mar 3, 2026
88 checks passed
@marc0olo marc0olo deleted the feat/duration-amount-freezing-threshold branch March 3, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants