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

Method requireTaskManager

internal/api/core/tasks.go:91–101  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

89)
90
91func (h *BaseHandlers) requireTaskManager(c *gin.Context) (TaskService, bool) {
92 if h.Tasks == nil {
93 h.respondError(
94 c,
95 http.StatusServiceUnavailable,
96 fmt.Errorf("%s: task service is not configured", h.transportName()),
97 )
98 return nil, false
99 }
100 return h.Tasks, true
101}
102
103func (h *BaseHandlers) requireTaskObserver(c *gin.Context) (Observer, bool) {
104 if h.Observer == nil {

Callers 15

RequestTaskRunReviewMethod · 0.95
listTaskRunReviewsMethod · 0.95
GetTaskRunReviewMethod · 0.95
ListTasksMethod · 0.95
CreateTaskMethod · 0.95
GetTaskMethod · 0.95
BlockTaskMethod · 0.95
ListTaskBlocksMethod · 0.95
ClearTaskBlockMethod · 0.95
RecoverTaskMethod · 0.95

Calls 2

respondErrorMethod · 0.95
transportNameMethod · 0.95

Tested by 1