AOEpeople / Aoe_Scheduler

Cron Scheduler Module for Magento
http://fbrnc.net/blog/2011/03/magento-cron-schedule
GNU General Public License v3.0
373 stars 202 forks source link

Less bug, more guidance? #365

Closed BradMcDev closed 6 years ago

BradMcDev commented 6 years ago

Hi AOE Scheduler community & team.

Thanks in advance for reading, and for any help you can hopefully offer; I'm sorry for posting this here, but I imagine the dev team & community on AOE Scheduler's github might be able to help my team?

My company uses Magento for our marketplace, and makes HEAVY use of AOE Scheduler to manage our scheduled jobs. While we've always had occasional issues with AOE Scheduler unable to kick off an enterprise_refresh_index, lately it's been happening far more often, and at a rate that's actually hampering our Merchandising team's ability to operate, due to the rogue enterprise_refresh_index seeming to hold table locks that are causing INSERT/DELETE/UPDATE timeouts on VERY simple Merchandising operations.

It's crippling their ability to merchandise & update products & categories throughout the day, so it's crucial we track down what's causing this rogue enterprise_refresh_index that's not being handled by AOE Scheduler.

Useful info about our setup:

Extensions of note:

enterprise_refresh_index cron setup enterprise_refresh_index cron setup*

index management configured in backend index management configured in backend

enterprise_refresh_index erorr details from our investigations:

We're at the point where we assume one of two things, after exhausting all debugging options we can think of:

Worthwhile bonus data:

We're hoping for any avenues or ideas from people who may have had similar experiences, and not managed to document the solution online, or maybe trigger a solution from shop(s) experiencing similar issue(s).

We know this issue has been discussed a lot, but no one has ever had this set of scenarios where an unknown enterprise_refresh_index is holding tables hostage for so long that simple merchandising updates are failing. Our merch team has been super patient, but the more we grow as a company, the more our catalog grows, the bigger the problem becomes... Any help is appreciated.

Let me know if providing more info will help you with your theories / ideas. Thanks all.

-Art

BradMcDev commented 6 years ago

Figured it out.

The issue came from Rapidflow. Our index settings for import for RapidFlow jobs was set to AUTOMATIC (Immediately after import). Setting it to MANUAL let AOEScheduler pick up the changes via the scheduled enterprise_refresh_index, and stopped locking AOEScheduler out of the indexer. All set.

screen shot 2018-04-04 at 4 41 33 pm