Configure Product Set updates to happen between specific times
Here's how to force your Products Sets to update between specific times. For example, if you only want your Product Sets to update in the middle of the night, you can use this code to control when your Product Sets should update.
Note that this doesn't stop a Product Set from updating outside of the configured hours if it's already running. Therefore, if you configure your Product Sets to only update until 6:00am and a Product Set begins updating at 5:58am, the Product Set will continue updating until it is finished updating despite the time being past 6:00am.
Create a custom plugin
If you haven't done so already, create a custom plugin.
Add custom code
Add the following custom code to your custom plugin:
Edit the "from" and "to" times
In the code above (lines #11 & #12), change the
$totimes to match the times in which you want Product Sets to update.
$fromis when Product Set updates can begin running.
$tois when updates should stop running after.
Save your custom plugin file.
The changes will take place after each Product Set performs its next update.