Price/Stock Update - How to select between LMS and immediate call
- Prerequisites
- Both crons are starting independently.
- Both crons are raising the corresponding flags to "Sent".
- Normal cron (sync)
- The normal cron starts when there are items for update selecting them in a bunch of 1073**.
- If The same normal cron is running*, exits.
- LMS (async)
- IF the count of items for update is bigger than or equal to 1073**, LMS should continue and start the update.
II Time to start.
- LMS first cron – every 15 minutes.
- Normal stock update – every minute, except the minutes in which the LMS is starting.
- This is valid only until the multiple running crons functionality is released. After that we will decide how many crons from that type are allowed to run simultaneously.
-
- This number is 1073 at the moment, before the multiple running crons functionality is ready, after that we could try with 10733 limit to trigger normal or LMS stock/price update.