MCPcopy Create free account
hub / github.com/compozy/agh / statusForTaskBlockError

Function statusForTaskBlockError

internal/api/core/tasks.go:2452–2457  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

2450}
2451
2452func statusForTaskBlockError(err error) int {
2453 if errors.Is(err, taskpkg.ErrValidation) {
2454 return http.StatusUnprocessableEntity
2455 }
2456 return StatusForTaskError(err)
2457}
2458
2459func failTaskRunFromRequest(req contract.FailTaskRunRequest) (taskpkg.RunFailure, error) {
2460 failure := taskpkg.RunFailure{

Callers 4

BlockTaskMethod · 0.85
ListTaskBlocksMethod · 0.85
ClearTaskBlockMethod · 0.85
RecoverTaskMethod · 0.85

Calls 2

StatusForTaskErrorFunction · 0.85
IsMethod · 0.45

Tested by

no test coverage detected