(ctx context.Context)
| 204 | } |
| 205 | |
| 206 | func (s *Service) syncPluginModelRuntime(ctx context.Context) { |
| 207 | if s == nil || s.pluginHost == nil || s.coreManager == nil { |
| 208 | return |
| 209 | } |
| 210 | if ctx == nil { |
| 211 | ctx = context.Background() |
| 212 | } |
| 213 | s.pluginHost.RegisterModels(ctx, registry.GetGlobalRegistry()) |
| 214 | s.registerAvailableExecutors(ctx, executorRegistrationOptions{ |
| 215 | includeBaseline: s.cfg != nil && s.cfg.Home.Enabled, |
| 216 | includePlugins: true, |
| 217 | forceReplaceAuths: true, |
| 218 | auths: s.coreManager.List(), |
| 219 | }) |
| 220 | s.refreshPluginModelRegistrations(ctx) |
| 221 | s.coreManager.RefreshSchedulerAll() |
| 222 | } |
| 223 | |
| 224 | func (s *Service) refreshPluginModelRegistrations(ctx context.Context) { |
| 225 | if s == nil || s.pluginHost == nil || s.coreManager == nil { |
no test coverage detected