(ctx context.Context)
| 151 | } |
| 152 | |
| 153 | func mustResumableState(ctx context.Context) *rivermiddleware.ResumableState { |
| 154 | state, ok := resumableStateFromContext(ctx) |
| 155 | if !ok { |
| 156 | panic(errResumableStepNotInWorker) |
| 157 | } |
| 158 | |
| 159 | return state |
| 160 | } |
| 161 | |
| 162 | func registerResumableStepName(state *rivermiddleware.ResumableState, name string) bool { |
| 163 | if _, ok := state.AllStepNames[name]; ok { |
no test coverage detected
searching dependent graphs…