From e7a1db2c16bf02c323d236d82545cdd590d95b5a Mon Sep 17 00:00:00 2001 From: rogeecn Date: Tue, 11 Mar 2025 09:44:44 +0800 Subject: [PATCH] fix: job contracts --- contracts/cron_job.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/contracts/cron_job.go b/contracts/cron_job.go index 3b40b9f..b17ef0e 100644 --- a/contracts/cron_job.go +++ b/contracts/cron_job.go @@ -1,15 +1,13 @@ package contracts import ( - "time" - "github.com/riverqueue/river" ) type CronJob interface { - Description() string - Periodic() time.Duration - JobArgs() []river.JobArgs - InsertOpts() *river.InsertOpts + Kind() string + Periodic() river.PeriodicSchedule + JobArgs() river.JobArgs + InsertOpts() river.InsertOpts RunOnStart() bool }