Create a publisher per cron timer (#3218)

* Create a publisher per cron timer

We want to be able to run multiple timers at the same time.

* Remove error
This commit is contained in:
markretallack
2025-05-19 18:06:12 +05:30
committed by GitHub
parent b26e28e733
commit 45d6132ffd
3 changed files with 12 additions and 10 deletions
+1 -3
View File
@@ -23,7 +23,6 @@ import (
"go.uber.org/zap"
"github.com/fission/fission/pkg/crd"
"github.com/fission/fission/pkg/publisher"
"github.com/fission/fission/pkg/utils/manager"
)
@@ -38,8 +37,7 @@ func Start(ctx context.Context, clientGen crd.ClientGeneratorInterface, logger *
return fmt.Errorf("error waiting for CRDs: %w", err)
}
poster := publisher.MakeWebhookPublisher(logger, routerUrl)
timerSync, err := MakeTimerSync(ctx, logger, fissionClient, MakeTimer(logger, poster))
timerSync, err := MakeTimerSync(ctx, logger, fissionClient, MakeTimer(logger, routerUrl))
if err != nil {
return fmt.Errorf("error making timer sync: %w", err)
}