2026-02-16 16:26:43: merge [main:5ee9d8568258a2e35dfce4aba80a607d007c2f0c];
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s

This commit is contained in:
txix committed 2026-02-16 16:26:43 +03:00
1 parent aebc53174b
commit 0ad3e3dead
41 files changed
+1378 -239

No files matched your search

+3 -2
View File
@@ -4,11 +4,12 @@ import (
"context"
"time"
"msp-admin-service/conf"
"github.com/pkg/errors"
"github.com/txix-open/bgjob"
"github.com/txix-open/isp-kit/bgjobx/handler"
"github.com/txix-open/isp-kit/log"
"msp-admin-service/conf"
)
const (
@@ -45,7 +46,7 @@ func (s Service) Handle(ctx context.Context, _ bgjob.Job) handler.Result {
return handler.Retry(defaultRetryTimeout, errors.WithMessage(err, "sync state with worker"))
}
return handler.Reschedule(s.syncPeriod)
return handler.Reschedule(handler.ByAfterTime(s.syncPeriod, time.Now()))
}
func (s Service) deleteOldAudit(ctx context.Context) error {