diff --git a/worker/worker.go b/worker/worker.go index 36fc0262a..9f07caffc 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -24,6 +24,8 @@ type Worker interface { PerformIn(Job, time.Duration) error // Register a Handler Register(string, Handler) error + // PeriodicallyPerform performs a job periodically according to the provided cron spec + RegisterPeriodic(cronSpec, jobName string, h Handler) error } /* TODO(sio4): #road-to-v1 - redefine Worker interface clearer