MCPcopy Create free account
hub / github.com/QuantumNous/new-api / Run

Method Run

controller/system_task_handlers.go:150–153  ·  view source on GitHub ↗
(ctx context.Context, task *model.SystemTask, runnerID string)

Source from the content-addressed store, hash-verified

148func (asyncTaskPollHandler) NewPayload() any { return nil }
149
150func (asyncTaskPollHandler) Run(ctx context.Context, task *model.SystemTask, runnerID string) {
151 summary := service.RunTaskPollingOnce(ctx, service.NewSystemTaskProgressReporter(task, runnerID))
152 finishSystemTaskHandler(task, runnerID, model.SystemTaskStatusSucceeded, summary, nil)
153}
154
155func finishSystemTaskHandler(task *model.SystemTask, runnerID string, status model.SystemTaskStatus, result any, runErr error) {
156 errorMessage := ""

Callers

nothing calls this directly

Calls 3

RunTaskPollingOnceFunction · 0.92
finishSystemTaskHandlerFunction · 0.85

Tested by

no test coverage detected