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

Method GetTaskRunByIdempotencyKey

internal/task/manager_test.go:1896–1906  ·  view source on GitHub ↗
(
	_ context.Context,
	key string,
	origin Origin,
)

Source from the content-addressed store, hash-verified

1894}
1895
1896func (s *inMemoryManagerStore) GetTaskRunByIdempotencyKey(
1897 _ context.Context,
1898 key string,
1899 origin Origin,
1900) (Run, error) {
1901 record, ok := s.idempotencyByKey[idempotencyKey(origin, key)]
1902 if !ok {
1903 return Run{}, ErrTaskRunIdempotencyNotFound
1904 }
1905 return s.GetTaskRun(context.Background(), record.RunID)
1906}
1907
1908func (s *inMemoryManagerStore) SaveTaskRunIdempotency(
1909 _ context.Context,

Callers

nothing calls this directly

Calls 2

GetTaskRunMethod · 0.95
idempotencyKeyFunction · 0.85

Tested by

no test coverage detected