MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / Preempt

Method Preempt

internal/repository/sql_job.go:12–12  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

10// CronJobRepository 定义了定时任务仓库接口
11type CronJobRepository interface {
12 Preempt(ctx context.Context) (domain.Job, error)
13 Release(ctx context.Context, jobId int64) error
14 UpdateTime(ctx context.Context, id int64) error
15 UpdateNextTime(ctx context.Context, id int64, nextTime time.Time) error

Callers 1

PreemptMethod · 0.65

Implementers 2

cronJobRepositoryinternal/repository/sql_job.go
jobDAOinternal/repository/dao/sql_job.go

Calls

no outgoing calls

Tested by

no test coverage detected