Skip to content

Commit

Permalink
Fix stopping condition of regular reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
aliok committed Jan 14, 2024
1 parent b377afd commit 2e36ffd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/subcommand/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ export async function start(argv:Args) {
// queue size is 0, but there are unresolved tasks --> hit the rate limit, should stop reporting
// queue size is 0, there are no unresolved tasks --> queue is completed, should stop reporting
const queueState = taskQueue.getState();
if (queueState.size == 0) {
if (queueState.size == 0 && queueState.pending == 0) {
logger.info("Queue is empty. Stopping regular reporting.");
break;
}
}
Expand Down

0 comments on commit 2e36ffd

Please sign in to comment.