fix: job contracts
This commit is contained in:
@@ -1,15 +1,13 @@
|
|||||||
package contracts
|
package contracts
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/riverqueue/river"
|
"github.com/riverqueue/river"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CronJob interface {
|
type CronJob interface {
|
||||||
Description() string
|
Kind() string
|
||||||
Periodic() time.Duration
|
Periodic() river.PeriodicSchedule
|
||||||
JobArgs() []river.JobArgs
|
JobArgs() river.JobArgs
|
||||||
InsertOpts() *river.InsertOpts
|
InsertOpts() river.InsertOpts
|
||||||
RunOnStart() bool
|
RunOnStart() bool
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user