mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-22 20:32:24 +02:00
UBERF-8469: Fix exit from github service (#6921)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -376,6 +376,9 @@ export class ProjectsSyncManager implements DocSyncManager {
|
||||
repositories: GithubIntegrationRepository[]
|
||||
): Promise<void> {
|
||||
for (const prj of projects) {
|
||||
if (this.provider.isClosing()) {
|
||||
break
|
||||
}
|
||||
// Wait global project sync
|
||||
await integration.syncLock.get(prj._id)
|
||||
|
||||
@@ -449,6 +452,9 @@ export class ProjectsSyncManager implements DocSyncManager {
|
||||
(it) => it.space === prj._id
|
||||
)
|
||||
for (const m of milestones) {
|
||||
if (this.provider.isClosing()) {
|
||||
break
|
||||
}
|
||||
try {
|
||||
let { projectStructure, wasUpdates } = await this.ctx.withLog(
|
||||
'update project structure',
|
||||
|
||||
Reference in New Issue
Block a user