mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
UBERF-8525: Fix Github stuck on adding new integrations (#7009)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user