feat: add river jobs
This commit is contained in:
15
contracts/cron_job.go
Normal file
15
contracts/cron_job.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package contracts
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/riverqueue/river"
|
||||
)
|
||||
|
||||
type CronJob interface {
|
||||
Description() string
|
||||
Periodic() time.Duration
|
||||
JobArgs() river.JobArgs
|
||||
InsertOpts() *river.InsertOpts
|
||||
RunOnStart() bool
|
||||
}
|
||||
Reference in New Issue
Block a user