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

Method failed

controller/task_plugin_debug.go:131–155  ·  view source on GitHub ↗
(stage, reason string, taskErr *dto.TaskError, durable bool)

Source from the content-addressed store, hash-verified

129}
130
131func (d taskPluginSubmitDiagnostics) failed(stage, reason string, taskErr *dto.TaskError, durable bool) {
132 if d.pluginKey == "" {
133 return
134 }
135 code := ""
136 status := 0
137 local := true
138 if taskErr != nil {
139 code = taskErr.Code
140 status = taskErr.StatusCode
141 local = taskErr.LocalError
142 }
143 logger.LogDebug(
144 d.context,
145 "task_plugin subsystem=submit event=failed generation=%d plugin=%q stage=%q reason=%q code=%q status=%d local=%t durable=%t",
146 d.generation,
147 d.pluginKey,
148 stage,
149 reason,
150 code,
151 status,
152 local,
153 durable,
154 )
155}
156
157func (d taskPluginSubmitDiagnostics) reserve(event string, quota int) {
158 if d.pluginKey == "" {

Callers 1

Calls 1

LogDebugFunction · 0.92

Tested by

no test coverage detected