orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Activate reminders

Open magazin81 opened this issue 4 years ago • 3 comments

We are using an Azure Table as a storage for the Reminder Service. A fresh deployment comes with an empty table. When we start Silos no reminder grain is triggered as there is no registration stored in the Azure Table. What would be the best way to initialize the reminders? Should we do RegisterOrUpdateReminder in OnActivateAsync of the reminder grains, and try to activate the grains by reaching them. If so, what would be the best way to do in a multi-silo deployment? We tried to do it by participating in the silo's lifecycle and reaching the reminder grains in the stage ServiceLifecycleStage.Active, but it result in calling OnActivateAsync multiple times (one per silo).

magazin81 avatar Nov 26 '21 20:11 magazin81

Any reason you are deploying every time with an empty table?

benjaminpetit avatar Nov 29 '21 08:11 benjaminpetit

This only applies to the first deployment (fresh table) or when we add a new reminder.

magazin81 avatar Nov 29 '21 12:11 magazin81

👀

scalalang2 avatar Oct 15 '24 00:10 scalalang2