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

Function validateRunningSessionBinding

internal/task/manager.go:1338–1349  ·  view source on GitHub ↗
(run Run)

Source from the content-addressed store, hash-verified

1336}
1337
1338func validateRunningSessionBinding(run Run) error {
1339 if strings.TrimSpace(run.SessionID) == "" {
1340 return fmt.Errorf(
1341 "%w: task run %q cannot transition from %q to %q without a session binding",
1342 ErrInvalidStatusTransition,
1343 run.ID,
1344 run.Status,
1345 TaskRunStatusRunning,
1346 )
1347 }
1348 return nil
1349}
1350
1351func (m *Service) recoverRunByRequeue(
1352 ctx context.Context,

Callers 1

StartRunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected