Skip to content

Commit

Permalink
Adding logs in clear queue
Browse files Browse the repository at this point in the history
  • Loading branch information
rishigupta1599 committed Nov 22, 2023
1 parent 3d2af53 commit 232aa64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ export class Queue {
// clear and abort any queued tasks
clear() {
let tasks = [...this.#queued];
if (process.env.PERCY_QUEUE_STATS_LOGS) {
this.log.debug(`Clearing ${this.name} queue, queue size ${this.#queued.size}`);
}
this.#queued.clear();

for (let task of tasks) {
Expand Down

0 comments on commit 232aa64

Please sign in to comment.