• Resolved snpboris

    (@snpboris)


    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. 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”,
    “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”
    }

Viewing 3 replies - 1 through 3 (of 3 total)
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.