1 Commits

Author SHA1 Message Date
Rogee
4bc900f387 feat: support cronjob initers 2025-03-15 21:17:12 +08:00

View File

@@ -5,9 +5,18 @@ import (
)
type CronJob interface {
Kind() string
Periodic() river.PeriodicSchedule
JobArgs() river.JobArgs
InsertOpts() river.InsertOpts
RunOnStart() bool
Args() []CronJobArg
}
type CronJobArgInterface interface {
river.JobArgs
river.JobArgsWithInsertOpts
}
type CronJobArg struct {
Kind string
RunOnStart bool
PeriodicInterval river.PeriodicSchedule
Arg CronJobArgInterface
}