-
-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Bug description
ScheduleOnce doesn't always trigger. Sometimes it works 10 times, sometimes 20. But it always sometimes doesn't trigger.
In my use-case, I have an actor that needs to do some task once in a while (but not on a regular interval). So I use ScheduleOnce to schedule the task, and if it needs be, it uses ScheduleOnce to schedule the next task (until all tasks are done).
How to reproduce it?
See this gist. It is basically goakt-actor-hello-world, but the Receive sets a ScheduleOnce. It should keep itself going till the end of time.
However, after ~20 seconds (sometimes earlier, sometimes later) it stops. Without any error, from what I can tell.
Expected behavior
Have a ScheduleOnce that schedules a message (once) reliable, if no error was returned.
Library Version:
- Go-Akt version: 1b11cfd
- Go version: 1.25.3
Additional context