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 { type CronJob interface {
Kind() string Args() []CronJobArg
Periodic() river.PeriodicSchedule }
JobArgs() river.JobArgs
InsertOpts() river.InsertOpts type CronJobArgInterface interface {
RunOnStart() bool river.JobArgs
river.JobArgsWithInsertOpts
}
type CronJobArg struct {
Kind string
RunOnStart bool
PeriodicInterval river.PeriodicSchedule
Arg CronJobArgInterface
} }