UBERF-8525: Fix Github stuck on adding new integrations (#7009)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-10-22 16:25:15 +07:00
committed by GitHub
parent 15ce5442c6
commit 5e234a0646
2 changed files with 41 additions and 13 deletions
+3 -2
View File
@@ -127,8 +127,9 @@ export class GithubWorker implements IntegrationManager {
this.closing = true
this.ctx.warn('Closing', { workspace: this.workspace.name })
this.triggerSync()
await this.syncPromise
this.ctx.warn('ClosingDone', { workspace: this.workspace.name })
await Promise.all([await this.syncPromise, new Promise<void>((resolve) => setTimeout(resolve, 5000))])
this.ctx.warn('Closing Done', { workspace: this.workspace.name })
await this.client.close()
}