• Resolved giovanni57

    (@giovanni57)


    Hello,
    I’m trying to use Wp Control plugin to run a script every 5 minutes.
    I did the setting as explained on the tutorial notes but something seems not work properly.
    The script would be this one https://ecommerce.kfive.it/wp-cron.php that is about a connector between WooCommerce orders and Odoo Erp orders. It takes the order from Woo and write them into Odoo.
    If I run manually the above url the order is transferred.
    If I use Wp Control it seems do not happen nothing.
    Unfortunately I’m not a programmer and so I can’t explain better the situation.
    If someone could help me it would be very kind because the process has to be automatic.

    The connector developer has wrote me these considerations but I don’t understand very much them. Help is needed ;-)) Thanks

    PS: The procession limit is set to 10: protected $_procession_limit = 10; in the file: wp-content/plugins/notify-odoo/Model/CronJob.php In your case each order takes much time because every selected option of the configurator creates a separate product on the odoo website. So each of them need to be send separately with 1 second delay (because of odoo API limits). So 20 selected options will take more than 20 seconds. This means that procession limit of 10 orders will require 200 seconds or more. Depending on type of cron that you are using (some web cron jobs are limited to 60 seconds) the script of my plugin will not have enough time to send all data with one cron job. So you may need to adjust the limit to 1 or 2 orders per cronjob. Or adjust the time limits of your cron job.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter giovanni57

    (@giovanni57)

    web cron jobs are limited to 60 seconds
    How can extend this limit ? The process of orders transfer takes more time and so I loose many rows during the process.
    Anybody can help me ? Please , I’m stuck with this issue

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    If you are running into time or memory limits then you will need to speak with your web host, because they are best placed to advise on how and where to increase the limits. This doesn’t appear to be anything specific to WP Crontrol, which doesn’t change the way that cron events run on your site.

    Best of luck!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.