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
The way it's done right now, it is impossible to synchronize resources when there is a high count.
The problem is, the queue has to process all the elements at once.
To adjust locally, I added one item at a time to the queue. For example, if there are 2000 orders to synchronize, I add 2000 queue jobs for processing all the orders.
That way, no matter how many items you need to process, I'm sure the job won't crash.
Here is an example of one of the controller actions :
The text was updated successfully, but these errors were encountered:
jlachancekffein
changed the title
Synching carts / orders / promotions need refactoring
Syncing carts + orders + promotions need refactoring
Aug 19, 2020
The way it's done right now, it is impossible to synchronize resources when there is a high count.
The problem is, the queue has to process all the elements at once.
To adjust locally, I added one item at a time to the queue. For example, if there are 2000 orders to synchronize, I add 2000 queue jobs for processing all the orders.
That way, no matter how many items you need to process, I'm sure the job won't crash.
Here is an example of one of the controller actions :
The text was updated successfully, but these errors were encountered: