CORS: add support for more parameters

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-08-02 18:44:34 +02:00
parent 455bb550ee
commit fdc10aa6c7
10 changed files with 89 additions and 52 deletions

View File

@@ -747,6 +747,11 @@ func (j *eventCronJob) Run() {
ticker := time.NewTicker(updateInterval)
done := make(chan bool)
defer func() {
done <- true
ticker.Stop()
}()
go func(taskName string) {
eventManagerLog(logger.LevelDebug, "update task %q timestamp worker started", taskName)
for {
@@ -762,9 +767,6 @@ func (j *eventCronJob) Run() {
}(task.Name)
executeRuleAsyncActions(rule, EventParams{}, nil)
done <- true
ticker.Stop()
} else {
executeRuleAsyncActions(rule, EventParams{}, nil)
}