Skip to content

Commit

Permalink
feat(job): vacuum
Browse files Browse the repository at this point in the history
  • Loading branch information
trungdlp-wolffun committed Jun 19, 2024
1 parent 3bfd877 commit c9dfa9e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ var (
ErrWeeklyJobMinutesSeconds = fmt.Errorf("gocron: WeeklyJob: atTimes minutes and seconds must be between 0 and 59 inclusive")
ErrPanicRecovered = fmt.Errorf("gocron: panic recovered")
ErrWithClockNil = fmt.Errorf("gocron: WithClock: clock must not be nil")
ErrWithPanicHandlerNil = fmt.Errorf("gocron: WithPanicHandler: panic handler must not be nil")
ErrWithDistributedElectorNil = fmt.Errorf("gocron: WithDistributedElector: elector must not be nil")
ErrWithDistributedLockerNil = fmt.Errorf("gocron: WithDistributedLocker: locker must not be nil")
ErrWithDistributedJobLockerNil = fmt.Errorf("gocron: WithDistributedJobLocker: locker must not be nil")
Expand Down
1 change: 0 additions & 1 deletion executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ func (e *executor) runJob(j internalJob, jIn jobIn) {
}

startTime := time.Now()

err := e.callJobWithRecover(j)
if e.monitor != nil {
e.monitor.RecordJobTiming(startTime, time.Now(), j.id, j.name, j.tags)
Expand Down

0 comments on commit c9dfa9e

Please sign in to comment.