From e8d568eba795e2f3281c105f42c55ee00e5447f3 Mon Sep 17 00:00:00 2001 From: allanice001 Date: Tue, 30 Dec 2025 16:35:00 +0000 Subject: [PATCH] fix: ensure only a single instance is fired Signed-off-by: allanice001 --- internal/bg/bg.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/bg/bg.go b/internal/bg/bg.go index 958d78d..336be20 100644 --- a/internal/bg/bg.go +++ b/internal/bg/bg.go @@ -138,7 +138,11 @@ func NewJobs(gdb *gorm.DB, dbUrl string) (*Jobs, error) { archer.WithTimeout(5*time.Minute), ) - c.Register("cluster_action", ClusterActionWorker(gdb)) + c.Register( + "cluster_action", + ClusterActionWorker(gdb), + archer.WithInstances(1), + ) return jobs, nil }