metasfresh / metasfresh

We do Open Source ERP - Fast, Flexible & Free Software to scale your Business.
http://metasfresh.com/en
GNU General Public License v2.0
1.74k stars 591 forks source link

Avoid mass-creation of "MissingShipmentSchedulesWorkpackages" #3582

Closed metas-ts closed 6 years ago

metas-ts commented 6 years ago

Is this a bug or feature request?

FR

What is the current behavior?

When the C_SubscriptionProgress_Evaluate process runs, it might create a lot of new C_SubscriptionProcess records each one of those causes CreateMissingShipmentSchedulesWorkpackageProcessor.schedule() to be invoked.

This can cause load problems.

Which are the steps to reproduce?

Create a lot of C_SubscriptionProcess records

What is the expected or desired behavior?

CreateMissingShipmentSchedulesWorkpackageProcessor.schedule() should be invoked just once, when the process is done with creating all C_SubscriptionProcess records

metas-rc commented 6 years ago

Results of IT

Tested on webui

metas-rc commented 6 years ago

Results of IT

Tested on webui