MCPcopy Index your code
hub / github.com/bytebase/bytebase / RunOnce

Method RunOnce

backend/runner/taskrun/executor.go:20–20  ·  view source on GitHub ↗

RunOnce will be called once by the scheduler to execute the task. If err is non-nil, the task will be marked as failed. driverCtx is used by the database driver so that we can cancel the query while having the ability to cleanup migration history etc.

(ctx context.Context, driverCtx context.Context, task *store.TaskMessage, taskRunUID int64)

Source from the content-addressed store, hash-verified

18 // driverCtx is used by the database driver so that we can cancel the query
19 // while having the ability to cleanup migration history etc.
20 RunOnce(ctx context.Context, driverCtx context.Context, task *store.TaskMessage, taskRunUID int64) (result *storepb.TaskRunResult, err error)
21}
22
23// RunExecutorOnce wraps a TaskExecutor.RunOnce call with panic recovery.

Callers 1

RunExecutorOnceFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected