Skip to content

[minor] Print next delay when processor crashes - #3745

Merged
AhmedSoliman merged 3 commits into
mainfrom
pr3745
Sep 5, 2025
Merged

AhmedSoliman merged 3 commits into
mainfrom
pr3745

Conversation

@AhmedSoliman

@AhmedSoliman AhmedSoliman commented Sep 4, 2025 •

Copy link
Copy Markdown
Member

Builds on top of DurationExt (#3738), we'll not print the delay period when the partition processor exists.


Stack created with Sapling. Best reviewed with ReviewStack.

@github-actions

github-actions Bot commented Sep 4, 2025 •

Copy link
Copy Markdown

Test Results

  7 files  ± 0    7 suites  ±0   4m 44s ⏱️ + 1m 58s
 54 tests + 2   53 ✅ + 2  1 💤 ±0  0 ❌ ±0 
223 runs  +10  220 ✅ +10  3 💤 ±0  0 ❌ ±0 

Results for commit 6f228ec. ± Comparison against base commit 7048a51.

♻️ This comment has been updated with latest results.

@pcholakov pcholakov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@AhmedSoliman
AhmedSoliman force-pushed the pr3745 branch 2 times, most recently from 6f228ec to 3a0a92d Compare September 5, 2025 14:30
Introduces a crate for time utilities (`serde-time-util`). The crate currently provides a trait `DurationExt` which provides a `friendly()` method for formatting a `Duration` as a human-readable string. It also allows parsing a human-friendly duration into a string.


Additionally, this removes the helpers from `DurationString` and keeps `restate-serde-util`'s DurationString as a serialization helper only.

Minor but relevant changes:
- Fixed parsing "0" as a duration. Previously, it was required to write "0s" to parse a zero duration.
- Some debug traces that reported the response latency now use the `to_seconds_span()` since it's cheaper to compute.
- Fixed typos in restate CLI service config commands
- More efficient serialization for DurationString that avoids an extra String allocation.
- Used jiff's native span rounding feature to round a duration to "days" instead of the manual calculation.
- Added a `negated()` method to the time span types to support "ago" formatting.
- Migrateed all uses of `DurationString` to `DurationExt::friendly()` including in CLI argument parsing.
Builds on top of DurationExt (#3738), we'll not print the delay period when the partition processor exists.
@AhmedSoliman
AhmedSoliman merged commit 7ec0ac0 into main Sep 5, 2025
16 checks passed
@AhmedSoliman
AhmedSoliman deleted the pr3745 branch September 5, 2025 14:35
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants