keep event stream alive even if its taking a while
Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-techdocs-backend': patch
|
||||
---
|
||||
|
||||
Keep the tech docs sync event stream alive even if it is taking a while to build.
|
||||
@@ -128,7 +128,13 @@ export class DocsSynchronizer {
|
||||
cache: this.cache,
|
||||
});
|
||||
|
||||
const interval = setInterval(() => {
|
||||
taskLogger.info(
|
||||
'The docs building process is taking a little bit longer to process this entity. Please bear with us.',
|
||||
);
|
||||
}, 10000);
|
||||
const updated = await this.buildLimiter(() => docsBuilder.build());
|
||||
clearInterval(interval);
|
||||
|
||||
if (!updated) {
|
||||
finish({ updated: false });
|
||||
|
||||
Reference in New Issue
Block a user