Init the services module Should not be called concurrently
()
| 114 | // Init the services module |
| 115 | // Should not be called concurrently |
| 116 | func Init() { |
| 117 | InitResources() |
| 118 | |
| 119 | // lock the database to avoid multiple devlake instances from sharing the same one |
| 120 | lockDatabase() |
| 121 | |
| 122 | // now, load the plugins |
| 123 | errors.Must(runner.LoadPlugins(basicRes)) |
| 124 | logger.Info("all plugins have been loaded") |
| 125 | registerPluginsMigrationScripts() |
| 126 | } |
| 127 | |
| 128 | func InjectCustomService(customPipelineNotifier PipelineNotificationService, customProjectService ProjectService) errors.Error { |
| 129 | if customPipelineNotifier != nil { |
nothing calls this directly
no test coverage detected