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

Interface Executor

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

Executor is the task executor.

Source from the content-addressed store, hash-verified

13
14// Executor is the task executor.
15type Executor interface {
16 // RunOnce will be called once by the scheduler to execute the task.
17 // If err is non-nil, the task will be marked as failed.
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.
24func RunExecutorOnce(ctx context.Context, driverCtx context.Context, exec Executor, task *store.TaskMessage, taskRunUID int64) (result *storepb.TaskRunResult, err error) {

Callers 1

RunExecutorOnceFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected