Skip to content

Commit

Permalink
fix: gracefully quit jobWrapper SkipIfStillRunning
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoXiaoSN authored and robfig committed Jan 6, 2021
1 parent 6a8421b commit bc59245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func SkipIfStillRunning(logger Logger) JobWrapper {
return FuncJob(func() {
select {
case v := <-ch:
defer func() { ch <- v }()
j.Run()
ch <- v
default:
logger.Info("skip")
}
Expand Down

0 comments on commit bc59245

Please sign in to comment.