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:
Andrey Sobolev
2025-07-31 15:42:16 +07:00
committed by GitHub
parent 6c6436d06c
commit fb65165f80
4 changed files with 72 additions and 10 deletions
+11 -1
View File
@@ -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 *************************',
{