Skip to content

Commit c7f4c0f

Browse files
committed
fix: ensure scheduled tasks don't overlap with themselves
1 parent 27f711d commit c7f4c0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

entity/builder.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ func (e *BuildConfig) StartJob() *BuildConfig {
390390
e.jobDefinition,
391391
e.jobTask,
392392
gocron.WithStartAt(gocron.WithStartImmediately()),
393+
gocron.WithSingletonMode(gocron.LimitModeReschedule),
393394
)
394395
if err != nil {
395396
return err

0 commit comments

Comments
 (0)