继续调整,手动开启定时任务相关逻辑代码,并处理相关bug

This commit is contained in:
alex
2023-09-20 18:20:15 +08:00
parent 4220ca4b8b
commit 8ce7bb540e
12 changed files with 53 additions and 43 deletions

View File

@@ -21,7 +21,7 @@ public class SpareTimeListener : ISpareTimeListener, ISingleton
/// 构造函数.
/// </summary>
public SpareTimeListener(
ISqlSugarClient context,
ISqlSugarClient context,
IEventPublisher eventPublisher)
{
_eventPublisher = eventPublisher;
@@ -88,6 +88,7 @@ public class SpareTimeListener : ISpareTimeListener, ISingleton
//modified by PhilPan
var nextRunTime = SpareTime.GetCronNextOccurrence(taskEntity.ExecuteCycleJson)?.DateTime;
await _eventPublisher.PublishAsync(new TaskEventSource("Task:UpdateTask", connectionConfig, new TimeTaskEntity()
{
Id = taskEntity.Id,