In one of my project i'm using NPM Bull.
Here is example.
const queue = new Queue(`job@@prepare-tasks`);
const MAX_TASKS_FETCH = 100
const chunkCounts = Math.ceil(tasksJob.itemCounts / MAX_TASKS_FETCH);
for(let i = 0; i < chunkCounts; i++) {
const tasksJobConfig: ITasksJob = clone(tasksJob);
tasksJobConfig.offset = i * MAX_TASKS_FETCH;
tasksJobConfig.limit = MAX_TASKS_FETCH;
tasksJobConfig.isLast = chunkCounts === i + 1;
queue.add(tasksJobConfig);
}
when I use special character @@ in the name ofn Queue as mentioned the above example. the execution of job is become random and when I remove the special character @@ then the job execute FIFO. as far they mentioned in the documentation by default the execution of job is FIFO . i debugged it but couldnt find out the reason.