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

Method refresh

internal/service/sql_job.go:71–78  ·  view source on GitHub ↗

refresh 更新任务的更新时间

(id int64)

Source from the content-addressed store, hash-verified

69
70// refresh 更新任务的更新时间
71func (c *cronJobService) refresh(id int64) {
72 ctx, cancel := context.WithTimeout(context.Background(), time.Second)
73 defer cancel()
74 err := c.repo.UpdateTime(ctx, id)
75 if err != nil {
76 c.l.Error("Failed to refresh job", zap.Error(err))
77 }
78}

Callers 1

PreemptMethod · 0.95

Calls 1

UpdateTimeMethod · 0.65

Tested by

no test coverage detected