( _ context.Context, key string, origin Origin, )
| 1894 | } |
| 1895 | |
| 1896 | func (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 | |
| 1908 | func (s *inMemoryManagerStore) SaveTaskRunIdempotency( |
| 1909 | _ context.Context, |
nothing calls this directly
no test coverage detected