Repository navigation
feat: Enhance actor timer and reminder functionality with repetitions and TTL options - #1825
Merged
dapr-bot merged 1 commit intoOct 8, 2026
Conversation
matheusandre1
force-pushed
the
feat/actor-timer-reminder-ttl-repetitions
branch
from
October 7, 2026 02:57
41c1893 to
09e06f2
Compare
matheusandre1
marked this pull request as ready for review
October 7, 2026 03:02
javier-aliaga
requested changes
Oct 7, 2026
javier-aliaga
requested changes
Oct 7, 2026
Contributor
There was a problem hiding this comment.
@matheusandre1 thanks! Can you check my comments?
… and TTL options Signed-off-by: Matheus André <matheusandr2@gmail.com>
matheusandre1
force-pushed
the
feat/actor-timer-reminder-ttl-repetitions
branch
from
October 7, 2026 14:32
09e06f2 to
91087a6
Compare
javier-aliaga
approved these changes
Oct 8, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1825 +/- ##
============================================
+ Coverage 79.26% 79.66% +0.39%
- Complexity 2615 2683 +68
============================================
Files 264 267 +3
Lines 7785 7923 +138
Branches 820 839 +19
============================================
+ Hits 6171 6312 +141
+ Misses 1254 1252 -2
+ Partials 360 359 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds support for TTL, repetitions (ISO 8601
Rn/periods) and optionaldueTime/periodto actor timers and reminders, aligning the Java SDK with the Dapr runtime and with the API agreed in #681 (keep the existing signatures, add a builder-based API).New API
Two new builder-based option classes in
io.dapr.actors.runtime:ActorReminderOptionsActorTimerOptionsBoth expose
dueTime,period,repetitionsandttl, all optional.AbstractActorgets new overloads that accept them:The existing registerReminder(String, T, Duration, Duration) and registerActorTimer(String, String, T, Duration, Duration) methods keep working unchanged and now delegate to the new overloads.
Behavior
Reminder/timer callbacks
The runtime echoes the registered period string back in the reminder/timer callback payload (ReminderPeriod.String() returns the raw value). Previously an ISO 8601 value such as R5/PT10S was silently parsed as Duration.ZERO. Now:
Other changes
Issue reference
Closes: #681
Closes: #652
Closes: #569
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: