Skip to content

Commit

Permalink
fix: concurrent execution of jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Dec 21, 2023
1 parent 6b19258 commit 2a98941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (j Job) Run() {

r.start()
defer r.end()
if !j.Singleton {
if j.Singleton {
if j.lock == nil {
j.lock = &sync.Mutex{}
}
Expand Down

0 comments on commit 2a98941

Please sign in to comment.