MCPcopy Index your code
hub / github.com/codnect/chrono / Run

Method Run

task.go:233–246  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

231}
232
233func (task *TriggerTask) Run(ctx context.Context) {
234 task.triggerContextMu.Lock()
235
236 executionTime := time.Now()
237 task.task(ctx)
238 completionTime := time.Now()
239
240 task.triggerContext.Update(completionTime, executionTime, task.nextTriggerTime)
241 task.triggerContextMu.Unlock()
242
243 if !task.IsCancelled() {
244 task.Schedule()
245 }
246}

Callers

nothing calls this directly

Calls 3

IsCancelledMethod · 0.95
ScheduleMethod · 0.95
UpdateMethod · 0.80

Tested by

no test coverage detected