(hooks RunHookDispatcher)
| 158 | } |
| 159 | |
| 160 | func defaultTaskRunHooks(hooks RunHookDispatcher) RunHookDispatcher { |
| 161 | if hooks != nil { |
| 162 | return hooks |
| 163 | } |
| 164 | return noopTaskRunHooks{} |
| 165 | } |
| 166 | |
| 167 | func taskRunObservationHookContext(ctx context.Context) context.Context { |
| 168 | if ctx == nil { |