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

Function taskStopDetail

internal/daemon/task_runtime.go:888–901  ·  view source on GitHub ↗
(reason taskpkg.StopReason)

Source from the content-addressed store, hash-verified

886}
887
888func taskStopDetail(reason taskpkg.StopReason) string {
889 switch reason.Normalize() {
890 case taskpkg.StopReasonCompleted:
891 return "task completed"
892 case taskpkg.StopReasonFailed:
893 return "task failed"
894 case taskpkg.StopReasonShutdown:
895 return taskStopDetailShutdown
896 case taskpkg.StopReasonOrphanedRun:
897 return taskStopDetailOrphaned
898 default:
899 return taskStopDetailCancellation
900 }
901}

Callers 3

TestTaskRuntimeHelpersFunction · 0.85
RequestTaskStopMethod · 0.85
ForceTaskStopMethod · 0.85

Calls 1

NormalizeMethod · 0.45

Tested by 1

TestTaskRuntimeHelpersFunction · 0.68