From b106018700e0f1bcfbc06539d64e29342fc78981 Mon Sep 17 00:00:00 2001 From: BrianWu Date: Mon, 8 Jul 2024 16:37:04 +0800 Subject: [PATCH] Need to verify the groupInfo.totalMembers for isReady check --- src/tasks/pull-scheduler-task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/pull-scheduler-task.ts b/src/tasks/pull-scheduler-task.ts index 44b5e8e..400e5ad 100644 --- a/src/tasks/pull-scheduler-task.ts +++ b/src/tasks/pull-scheduler-task.ts @@ -134,7 +134,7 @@ async function handlePulling( async function isReady(context: AppContext, logger: Logger): Promise { const { config, sworkerApi } = context; - if (!context.groupInfo) { + if (!context.groupInfo || context.groupInfo.totalMembers === 0) { logger.info('group info not loaded, skip this round'); return false; }