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

Function taskStopCause

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

Source from the content-addressed store, hash-verified

871}
872
873func taskStopCause(reason taskpkg.StopReason) session.StopCause {
874 switch reason.Normalize() {
875 case taskpkg.StopReasonCompleted:
876 return session.CauseCompleted
877 case taskpkg.StopReasonFailed:
878 return session.CauseFailed
879 case taskpkg.StopReasonShutdown:
880 return session.CauseShutdown
881 case taskpkg.StopReasonOrphanedRun:
882 return session.CauseFailed
883 default:
884 return session.CauseUserRequested
885 }
886}
887
888func taskStopDetail(reason taskpkg.StopReason) string {
889 switch reason.Normalize() {

Callers 3

TestTaskRuntimeHelpersFunction · 0.85
RequestTaskStopMethod · 0.85
ForceTaskStopMethod · 0.85

Calls 1

NormalizeMethod · 0.45

Tested by 1

TestTaskRuntimeHelpersFunction · 0.68