فهرست منبع

chore: register executor listener before startup

jamesread 2 هفته پیش
والد
کامیت
c442efe204
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      service/main.go

+ 3 - 2
service/main.go

@@ -260,13 +260,14 @@ func main() {
 
 	executor.LoadLogsFromDisk()
 
+	api.RegisterExecutorListener(executor)
+	entities.AddListener(executor.RebuildActionMap)
+
 	go onstartup.Execute(cfg, executor)
 	go oncron.Schedule(cfg, executor)
 	go onfileindir.WatchFilesInDirectory(cfg, executor)
 	go oncalendarfile.Schedule(cfg, executor)
 
-	api.RegisterExecutorListener(executor)
-	entities.AddListener(executor.RebuildActionMap)
 	go entities.SetupEntityFileWatchers(cfg)
 
 	go updatecheck.StartUpdateChecker(cfg)