Skip to content

Commit

Permalink
Debug log unresolved task keys when stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
aliok committed Jan 24, 2024
1 parent c5fe2a7 commit d4b66cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/queue/taskqueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ export class TaskQueue<ResultType, TaskSpec, Context> {
const checkUnresolvedTaskCount = () => {
logger.debug("Task queue is idle, checking if there are any unresolved tasks.");
logger.debug(`Unresolved task count: ${Object.keys(this.taskStore.unresolved).length}`);
logger.debug(`Unresolved tasks: ${JSON.stringify(Object.keys(this.taskStore.unresolved))}`);
if (Object.keys(this.taskStore.unresolved).length === 0) {
done = true;
}
Expand Down

0 comments on commit d4b66cb

Please sign in to comment.