scrapix icon indicating copy to clipboard operation
scrapix copied to clipboard

Add route to empty the task queue

Open bidoubiwa opened this issue 2 years ago • 1 comments

Sometimes it might be useful to cancel the tasks queue. It happened when I send the wrong meilisearch credentials but the processes were already launched.

This is the way to do it:

    this.queue = new Queue("crawling", redis_url);
    this.queue.obliterate({ force: true });

bidoubiwa avatar Jun 21 '23 16:06 bidoubiwa

Damn, they know how to name a method; "obliterate" :rage4:

gmourier avatar Jun 23 '23 10:06 gmourier