我正在使用每分钟运行一次的Akka,但我注意到日志有时会像这样间隔20分钟
[INFO][6/26/2019 12:20:09 PM][Thread 0321][[akka://SchedulerAutoAction/user/TaskSchedulerAutoAction#822840744]] information needed here please try
log date should be match with execution = 6/26/2019 12:20:09 PM
log date should be match with execution = 6/26/2019 12:20:09 PM
log date should be match with execution = 6/26/2019 12:20:09 PM
mongodb closed!
mongodb closed!
mongodb closed!
mongodb closed!
mongodb closed!
mongodb closed!
mongodb closed!
mongodb closed!
mongodb closed!
mongodb closed!
[INFO][6/26/2019 12:21:09 PM][Thread 0295][[akka://SchedulerAutoAction/user/TaskSchedulerAutoAction#822840744]] information needed here please try
mongodb closed!
我是akka的新手,并实现了他们的示例
var system = ActorSystem.Create("MySystem");
var someActor = system.ActorOf<SomeActor>("someActor");
var someMessage = new SomeMessage() {...};
system
.Scheduler
.ScheduleTellRepeatedly(TimeSpan.FromSeconds(0),
TimeSpan.FromSeconds(5),
someActor, someMessage, ActorRefs.NoSender); //or ActorRefs.Nobody or something else
基于他们的网站访问
https://getakka.net/articles/utilities/scheduler.html#some-examples
有人知道任何可以连续使用的调度程序吗? 我想改进我的akka代码,但希望您在dotnet核心中提出建议。