Some issue using wp control plugin
-
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 ;-)) ThanksPS: 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.
- You must be logged in to reply to this topic.