mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-23 04:42:22 +02:00
UBERF-8469: Fix exit from github service (#6921)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -457,6 +457,9 @@ export class CommentSyncManager implements DocSyncManager {
|
||||
repositories: GithubIntegrationRepository[]
|
||||
): Promise<void> {
|
||||
for (const repo of repositories) {
|
||||
if (this.provider.isClosing()) {
|
||||
break
|
||||
}
|
||||
const syncKey = `${repo._id}:comment`
|
||||
if (repo.githubProject === undefined || !repo.enabled || integration.synchronized.has(syncKey)) {
|
||||
if (!repo.enabled) {
|
||||
@@ -487,6 +490,9 @@ export class CommentSyncManager implements DocSyncManager {
|
||||
})
|
||||
try {
|
||||
for await (const data of i) {
|
||||
if (this.provider.isClosing()) {
|
||||
break
|
||||
}
|
||||
const comments: CommentExternalData[] = data.data as any
|
||||
this.ctx.info('retrieve comments for', {
|
||||
repo: repo.name,
|
||||
|
||||
Reference in New Issue
Block a user