Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Add stub RegisterPeriodic to worker.Simple
Browse files Browse the repository at this point in the history
  • Loading branch information
acaloiaro committed Sep 5, 2022
1 parent cbdc152 commit 2318810
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions worker/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ func (w *Simple) PerformIn(job Job, d time.Duration) error {
return nil
}

// RegisterPeriodic is currently a no-op and should be implemented
func (w *Simple) RegisterPeriodic(cronSpec, jobName string, h Handler) error {
return nil
}

// SimpleLogger is used by the Simple worker to write logs
type SimpleLogger interface {
Debugf(string, ...interface{})
Expand Down

0 comments on commit 2318810

Please sign in to comment.