-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actor: Get existing reminder by name #772
Comments
Hi @ssm3ll, You're right that we don't surface this through the Actors SDK. Do you have a use case in mind here? What do you plan to do with the data you will get? That information will help us prioritize this as well as determine how it should be designed. |
Hi @rynowak, I assume method should return IActorReminder instance if reminder exists, so it will be possible to read reminder details like due date etc. Main use case is to check if reminder has been already created. We have a method in actor witch receives driver location. If it was the first location for him then a reminder is created. that reminder changes driver state based on last location timestamp. |
In the absence of this, is there any downside to registering a reminder with the same name with each request in a controller? We have a service that uses an actor to get/set state and want to have one instance of a reminder running at all times. |
@halspang Is it possible to surface this api via the SDK? If reminder partitioning isn't activate UnregisterReminder() returns 200 even if no reminder is currently active. However if reminder partitioning is activate UnregisterReminder() returns 500 if no reminder is currently active. |
/assign |
@halspang This issue can be closed now. |
@shivamkm07 thank you very much! |
Expected Behavior
As per official documentation https://docs.dapr.io/reference/api/actors_api/#get-actor-reminder it is possible to get existing reminder by its name. So Actor should contain method GetReminderAsync(string reminderName) to get existing reminder, that has been previously created using RegisterReminderAsync (string reminderName, byte[] state, TimeSpan dueTime, TimeSpan period) method
Actual Behavior
Currently it's only possible to register or unregister reminder
Steps to Reproduce the Problem
Nor Actor neither DaprHttpInteractor contain method to get existing actor reminder by it's name
The text was updated successfully, but these errors were encountered: