Merge pull request #17953 from backstage/rugvip/startup

backend-app-api: parallelize plugin startup, introduce startup hook and middleware
This commit is contained in:
Patrik Oldsberg
2023-05-29 13:12:45 +02:00
committed by GitHub
27 changed files with 723 additions and 100 deletions
@@ -35,7 +35,10 @@ describe('createBackend', () => {
createServiceFactory({
service: coreServices.rootLifecycle,
deps: {},
factory: async () => ({ addShutdownHook: () => {} }),
factory: async () => ({
addStartupHook: () => {},
addShutdownHook: () => {},
}),
}),
],
}),
@@ -49,12 +52,18 @@ describe('createBackend', () => {
createServiceFactory({
service: coreServices.rootLifecycle,
deps: {},
factory: async () => ({ addShutdownHook: () => {} }),
factory: async () => ({
addStartupHook: () => {},
addShutdownHook: () => {},
}),
}),
createServiceFactory({
service: coreServices.rootLifecycle,
deps: {},
factory: async () => ({ addShutdownHook: () => {} }),
factory: async () => ({
addStartupHook: () => {},
addShutdownHook: () => {},
}),
}),
],
}),