MCPcopy Create free account
hub / github.com/github/gh-aw / getCopilotTimeoutValue

Function getCopilotTimeoutValue

pkg/workflow/copilot_engine_execution.go:272–285  ·  view source on GitHub ↗
(workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

270}
271
272func getCopilotTimeoutValue(workflowData *WorkflowData) string {
273 timeoutValue := strconv.Itoa(int(constants.DefaultAgenticWorkflowTimeout / time.Minute))
274 if workflowData.TimeoutMinutes == "" {
275 return timeoutValue
276 }
277 rawTimeoutValue := strings.TrimSpace(workflowData.TimeoutMinutes)
278 if after, ok := strings.CutPrefix(rawTimeoutValue, "timeout-minutes:"); ok {
279 rawTimeoutValue = strings.TrimSpace(after)
280 }
281 if rawTimeoutValue != "" {
282 return rawTimeoutValue
283 }
284 return timeoutValue
285}
286
287func (e *CopilotEngine) resolveCopilotCommand(workflowData *WorkflowData, sandboxEnabled bool) (string, string) {
288 if workflowData.EngineConfig != nil && workflowData.EngineConfig.Command != "" {

Callers 1

GetExecutionStepsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected