Files
atom/contracts/cron_job.go
2025-03-15 21:17:12 +08:00

23 lines
337 B
Go

package contracts
import (
"github.com/riverqueue/river"
)
type CronJob interface {
Args() []CronJobArg
}
type CronJobArgInterface interface {
river.JobArgs
river.JobArgsWithInsertOpts
}
type CronJobArg struct {
Kind string
RunOnStart bool
PeriodicInterval river.PeriodicSchedule
Arg CronJobArgInterface
}