review updates

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-03-22 16:21:37 +01:00
parent 9053686daa
commit c1cfe0db30
8 changed files with 65 additions and 50 deletions
+14 -1
View File
@@ -2,4 +2,17 @@
'@backstage/plugin-tech-insights-backend': minor
---
Updates tech-insights to use backend-tasks as the Fact Retriever scheduler.
This backend now uses the `@backstage/backend-tasks` package facilities for scheduling fact retrievers.
**BREAKING**: The `buildTechInsightsContext` function now takes an additional field in its options argument: `scheduler`. This is an instance of `PluginTaskScheduler`, which can be found in your backend initialization code's `env`.
```diff
const builder = buildTechInsightsContext({
logger: env.logger,
config: env.config,
database: env.database,
discovery: env.discovery,
+ scheduler: env.scheduler,
factRetrievers: [ /* ... */ ],
});
```