You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect that Queue.obliterate will remove everything about a job, including it's previous logs.
Instead, adding a job with the same data (i think) causes the logs to accumulate.
MCVE
Run the below example 3 times and look at the logs in Arena. It shows 3 log lines instead of 1.
I expected that since I run Queue.obliterate at the start of every script, logs would start anew therefore
only 1 "Lorem Ipsum" log line would be shown.
constQueue=require('bull')consttestQueue=newQueue('test');(async()=>{testQueue.on('drained',()=>{console.log('Queue drained.')})awaittestQueue.obliterate({force: true})testQueue.process(job=>{returnjob.log('Lorem Ipsum Dolor Sit Amet')})testQueue.add({id: 'foo'})})()
Description
I expect that
Queue.obliterate
will remove everything about a job, including it's previous logs.Instead, adding a job with the same data (i think) causes the logs to accumulate.
MCVE
Run the below example 3 times and look at the logs in Arena. It shows 3 log lines instead of 1.
I expected that since I run
Queue.obliterate
at the start of every script, logs would start anew thereforeonly 1 "Lorem Ipsum" log line would be shown.
Arena UI Logs
Bull version
3.22.6
Additional information
N/A
The text was updated successfully, but these errors were encountered: