Skip to content

Commit 2e36ffd

Browse files
committed
Fix stopping condition of regular reporting
1 parent b377afd commit 2e36ffd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/subcommand/execute.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ export async function start(argv:Args) {
197197
// queue size is 0, but there are unresolved tasks --> hit the rate limit, should stop reporting
198198
// queue size is 0, there are no unresolved tasks --> queue is completed, should stop reporting
199199
const queueState = taskQueue.getState();
200-
if (queueState.size == 0) {
200+
if (queueState.size == 0 && queueState.pending == 0) {
201+
logger.info("Queue is empty. Stopping regular reporting.");
201202
break;
202203
}
203204
}

0 commit comments

Comments
 (0)