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 have a process that adds a single item to the queue and it works perfectly.
I have another process that adds 10 items to the queue, but they all process at the same time, I was expecting 1 at a time but can't get this process to work like this. What am I missing?
Working Code:
asynchandle(args,options){// get envconstappEnv=Config.get("app.environment");// get company id from cli argumentconstclientID=args.company;// Data to be passed to job handleconstdata={id: clientID};this.info(`Queueing ${clientID} Job in ${appEnv}`);awaitBull.add(Job.key,{id: clientID});this.info("Job Queued");process.exit();}
If I modify that script and add the following, all 3 will process immediately, is there any way to change this?
I have a process that adds a single item to the queue and it works perfectly.
I have another process that adds 10 items to the queue, but they all process at the same time, I was expecting 1 at a time but can't get this process to work like this. What am I missing?
Working Code:
If I modify that script and add the following, all 3 will process immediately, is there any way to change this?
The text was updated successfully, but these errors were encountered: