mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-24 21:32:24 +02:00
qfix: connect timeout + service ws info cache (#9622)
1. Fix connect timeout in case of maitenance 2. Introduce workspace info cache for service accounts 3. Fix null in github integration Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -134,6 +134,16 @@ export class PlatformWorker {
|
||||
workspace: i.workspaceUuid,
|
||||
installationId: Array.isArray(installationId) ? installationId : [installationId]
|
||||
})
|
||||
} else {
|
||||
ctx.warn('Integration without installationId', {
|
||||
accountId: i.socialId,
|
||||
workspace: i.workspaceUuid
|
||||
})
|
||||
await accountsClient.deleteIntegration({
|
||||
kind: 'github',
|
||||
workspaceUuid: i.workspaceUuid,
|
||||
socialId: i.socialId
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1076,9 +1086,9 @@ export class PlatformWorker {
|
||||
index: widx,
|
||||
total: workspaces.length
|
||||
})
|
||||
// No if no integration, we will try connect one more time in a time period
|
||||
this.clients.set(workspace, worker)
|
||||
} else {
|
||||
// No if no integration, we will try connect one more time in a time period
|
||||
workerCtx.info(
|
||||
'************************* Failed Register worker, timeout or integrations removed *************************',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user