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
Describe the bug
In some cases the basket might end up with more entries than the queue_class.basket_options_hash[:size] which prevents the basket from ever performing/or being cleared.
These scenarios could happen when a certain record is added to the queue_collection but the on_success or perform raises an exception prior to the basket being cleared — and a subsequent Basket.add pushes the basket capacity passed the defined size.
To Reproduce
Steps to reproduce the behavior:
Explicitly raise an error in the perform action
Add items into the basket
When the basket performs, and throws an error the items aren't cleared
Add additional items to the basket will never trigger "perform"
Expected behavior
Ideally the basket can be cleared at some point if the contents "overflow" 😄
The text was updated successfully, but these errors were encountered:
Describe the bug
In some cases the basket might end up with more entries than the queue_class.basket_options_hash[:size] which prevents the basket from ever performing/or being cleared.
These scenarios could happen when a certain record is added to the queue_collection but the on_success or perform raises an exception prior to the basket being cleared — and a subsequent Basket.add pushes the basket capacity passed the defined size.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ideally the basket can be cleared at some point if the contents "overflow" 😄
The text was updated successfully, but these errors were encountered: