Title: Cron Problem: Plugin reschedules a job while processing the same
Last modified: October 6, 2020

---

# Cron Problem: Plugin reschedules a job while processing the same

 *  Resolved [snpboris](https://wordpress.org/support/users/snpboris/)
 * (@snpboris)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/cron-problem-plugin-reschedules-a-job-while-processing-the-same/)
 * Hi, since a updating ATUM to the latest version, we have had issues with the 
   plugin consuming a lot of CPU power.
    Our host was able to track down the issue.
   Please take a look and kindly resolve the plugin’s issue.
 * We traced the issue down to the plugin ATUM Inventory Management for WooCommerce
   it does not implement it’s updating logic correctly and in the end, essentially
   creates a race condition where it would re-issue requests a couple of times every
   second.
    This happens because it’s logic will reschedule a job while it’s processing
   the same job. Quickly looking at the code of the plugin, we found it is missing
   the exclusive mutex like it’s implemented in WP Cron [https://github.com/WordPress/WordPress/blob/master/wp-includes/cron.php#L640](https://github.com/WordPress/WordPress/blob/master/wp-includes/cron.php#L640).
   The only way to resolve the issue was to disable the plugin for now. I suggest
   you contact the authors of the plugin and ask them for support as this is out
   of scope what we can do as a host. They might find the following logs useful:
 * Example request:
    { “kind”: “php_request”, “host”: “soapandprecede.com”, “remote_addr”:“
   10.48.8.240”, “request_uri”: “/wp-admin/admin-ajax.php”, “request_length”: 2316,“
   status”: 499, “request_method”: “POST”, “request_id”: “c16bd272996da87efe384a20130d5881”,“
   body_bytes_sent”: 0, “http_referrer”: “[https://soapandprecede.com/wp-admin/admin-ajax.php&#8221](https://soapandprecede.com/wp-admin/admin-ajax.php&#8221);,“
   request_time”: “0.982”, “request_body”: “action=atum_async_hooks&token=e82ae0d358&
   hooks%5Bupdate_atum_product_calc_props_311%5D%5Bcallback%5D%5B0%5D=%5CAtum%5CInc%
   5CHelpers&hooks%5Bupdate_atum_product_calc_props_311%5D%5Bcallback%5D%5B1%5D=
   update_atum_product_calc_props&hooks%5Bupdate_atum_product_calc_props_311%5D%
   5Bparams%5D%5B0%5D=311&hooks%5Bupdate_atum_product_calc_props_311%5D%5Bparams%
   5D%5B1%5D=1&hooks%5Bupdate_atum_product_calc_props_736%5D%5Bcallback%5D%5B0%5D
   =%5CAtum%5CInc%5CHelpers&hooks%5Bupdate_atum_product_calc_props_736%5D%5Bcallback%
   5D%5B1%5D=update_atum_product_calc_props&hooks%5Bupdate_atum_product_calc_props_736%
   5D%5Bparams%5D%5B0%5D=736&hooks%5Bupdate_atum_product_calc_props_736%5D%5Bparams%
   5D%5B1%5D=1&hooks%5Bupdate_atum_product_calc_props_738%5D%5Bcallback%5D%5B0%5D
   =%5CAtum%5CInc%5CHelpers&hooks%5Bupdate_atum_product_calc_props_738%5D%5Bcallback%
   5D%5B1%5D=update_atum_product_calc_props&hooks%5Bupdate_atum_product_calc_props_738%
   5D%5Bparams%5D%5B0%5D=738&hooks%5Bupdate_atum_product_calc_props_738%5D%5Bparams%
   5D%5B1%5D=1&hooks%5Bupdate_atum_product_calc_props_1158%5D%5Bcallback%5D%5B0%
   5D=%5CAtum%5CInc%5CHelpers&hooks%5Bupdate_atum_product_calc_props_1158%5D%5Bcallback%
   5D%5B1%5D=update_atum_product_calc_props&hooks%5Bupdate_atum_product_calc_props_1158%
   5D%5Bparams%5D%5B0%5D=1158&hooks%5Bupdate_atum_product_calc_props_1158%5D%5Bparams%
   5D%5B1%5D=1&hooks%5Bupdate_atum_product_calc_props_1160%5D%5Bcallback%5D%5B0%
   5D=%5CAtum%5CInc%5CHelpers&hooks%5Bupdate_atum_product_calc_props_1160%5D%5Bcallback%
   5D%5B1%5D=update_atum_product_calc_props&hooks%5Bupdate_atum_product_calc_props_1160%
   5D%5Bparams%5D%5B0%5D=1160&hooks%5Bupdate_atum_product_calc_props_1160%5D%5Bparams%
   5D%5B1%5D=1”, “php_response_time”: “0.979”, “con_active”: “3”, “con_waiting”:“
   0”, “country”: “Private”, “http_user_agent”: “WordPress/5.5.1; [https://soapandprecede.com&#8221](https://soapandprecede.com&#8221);}

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * (@salvamb)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/cron-problem-plugin-reschedules-a-job-while-processing-the-same/#post-13501801)
 * Hi [@snpboris](https://wordpress.org/support/users/snpboris/)
 * We’re sorry for any inconvenience caused.
 * We were already aware of this issue and fixed it.
    The fix will come with the
   next version we plan to release this week.
 * Best Regards,
    Salva.
 *  Thread Starter [snpboris](https://wordpress.org/support/users/snpboris/)
 * (@snpboris)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cron-problem-plugin-reschedules-a-job-while-processing-the-same/#post-13528794)
 * [@salvamb](https://wordpress.org/support/users/salvamb/) – so it is fixed in 
   version 1.7.8?
 *  Plugin Author [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * (@salvamb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cron-problem-plugin-reschedules-a-job-while-processing-the-same/#post-13532937)
 * It should.
 * Did you have a chance to test it out?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cron Problem: Plugin reschedules a job while processing the same’ is 
closed to new replies.

 * ![](https://ps.w.org/atum-stock-manager-for-woocommerce/assets/icon.svg?rev=1634692)
 * [ATUM WooCommerce Inventory Management and Stock Tracking](https://wordpress.org/plugins/atum-stock-manager-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/atum-stock-manager-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/cron-problem-plugin-reschedules-a-job-while-processing-the-same/#post-13532937)
 * Status: resolved