devsisters / shardcake

Sharding and location transparency for Scala
https://devsisters.github.io/shardcake/
Apache License 2.0
382 stars 29 forks source link

[Feature Request] resume failed singleton job #95

Closed BaekGeunYoung closed 8 months ago

BaekGeunYoung commented 9 months ago

Is there some way to restart a died singleton job? It would be great if there is some option that determines whether to restart or not in registerSingleton function, or some api like restartSingleton which can restart died job manually.

ghostdogpr commented 9 months ago

I think it's simpler if it's handled by the user. When you register a singleton, you can decide if you want to catch Die errors or not by adding the appropriate error handling in the run method.