bull
bull copied to clipboard
jobId same name Different add queue
Minimal, Working Test code to reproduce the issue.
` queue.add('nameAAA', { }, { removeOnComplete: true, removeOnFail: true, jobId: 1 });
queue.add('nameBBB', { }, { removeOnComplete: true, removeOnFail: true, jobId: 1 }); // I hope different names should be added success, But add fail. I can give jobId add pre, But it's too much trouble `
Bull version 4.8.4
What is the issue exactly?
Queue add same jobId but different name , only add a job. Name like db table name , Id like db table id. Different table add same jobId should add tow jobs.
By design jobs with the same Id as existing jobs in the queue are ignored.
The function feels better if you use name + jobId to distinguish tasks.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.