• Resolved sknzl

    (@sknzl)


    Since the update to 3.6 we have the problem that webhooks fired on order.updated are created but never executed.

    In the Scheduled tasks overview they are shown as pending. Clicking on run works and they are successfully executed.

    The corresponding orders are all marked as completed.
    What could be the problem? How can the problem be debugged?
    Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Ditto on that — have a site doing creating scheduled actions that are “pending” since the recent update.

    woocommerce_deliver_webhook_async, status: pending, group: woocommerce-webhooks.

    Never had this problem before the recent Woo update.

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @wpmuse @sknzl

    Have you managed to get to the bottom of this?

    I’ve seen this a few times – do you have any “optimizing” or caching plugins installed? I’ve seen those conflict with the Action Scheduler.

    If that works, please reach out to those plugin developers and explain their plugin conflicted with the Action Scheduler.

    Thanks,

    Hey, Doug:

    Thanks for the follow up! The site in question uses Hummingbird and is on SiteGround which has their own caching system. I’ll contact both and let them know your comment and report back here for others. ??

    Okay…

    Checked with both WPMU in regard to Hummingbird and SiteGround in regard to their SG Optimizer plugin. Both claimed not having any other reports of this issue to date.

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @wpmuse

    Have you tried seeing if the Action Scheduler works as expected when one of those is deactivated?

    I have seen examples where deactivating the SG Optimizer has suddenly changed the functionality of a store where there seems to have been a caching issue in place.

    For what it’s worth – on a plain site with no caching or optimization plugins, the Action Scheduler will run as expected with no tasks pending for longer than they need to be – i.e. their time to run won’t be in the past.

    Let me know how you get on!

    Thanks,

    Hey, @dougaitken:

    Deactivated the SG Optimzier plugin and it made no difference (other than to slow the site by a couple seconds). Still had new pending actions that needed to be run manually this morning.

    The thing is nothing has changed on this site for quite some time — it just hums along. The is a recent occurrence that started with the recent update of WooCommerce. ˉ\_(ツ)_/ˉ

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @wpmuse

    Still had new pending actions that needed to be run manually this morning.

    Hmm, sounds like something else is causing the actions to stay pending.

    The thing is nothing has changed on this site for quite some time — it just hums along. The is a recent occurrence that started with the recent update of WooCommerce.

    I hear you – this is indeed timed with the 3.6 update of WooCommerce – the reason being is that there has been a move to using the Action Scheduler which behaves similarly to WP Cron – https://woocommerce.wordpress.com/2019/04/01/performance-improvements-in-3-6/

    I can confirm that using WooCommerce out of the box with no other plugins doesn’t display this same behavior so we know that either there is a server level interruption or a plugin is causing this so although it is time-consuming and intrusive, a Conflict Test is the best way of finding out what is stopping the Actions from running on schedule – https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Thanks,

    Thread Starter sknzl

    (@sknzl)

    I tried to debug the problem by running the wp-cli
    wp cron test

    I got an error message saying
    Error: WP-Cron spawn failed with error: cURL error 6: Could not resolve host: [email protected]

    It was a problem of the dns cache of the hosting and flushing it solved the problem.

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Thanks for replying back here again @sknzl

    It was a problem of the dns cache of the hosting and flushing it solved the problem.

    I appreciate you detailing how you got your situation resolved – @wpmuse does this help you at all?

    Thanks,

    @dougaitken The site is on SiteGround and they’ve cleared the server side DNS and created a ticket to further investigate the change with Woo and crons. I have my calendar marked to check the site again in a week and see if this is resolved.

    I’ll then report the results back here. Thanks Doug! ??

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @wpmuse

    I appreciate the update! Please do keep us posted, thanks!

    Hello @wpmuse!

    Did you find any solution about this on Siteground? I’m experiencing similar problem. Thanks!

    @amgdre

    Unfortunately, no. Whatever SG did didn’t prevent future actions from not being completed. So I waited until the Pendings were all clearly passed their date and reopened my ticket this morning. Will post back here when I hear back! ??

    @amgdre @dougaitken

    Okay so after a bunch of troubleshooting, right now, for this particular website, it appears that WPMU Defender Pro security plugin was blocking crons. A support ticket/bug report is now open with WPMU and I am awaiting their response once they investigate further.

    This could be more prominent than thought because how many folks actually look at their Woo Scheduled Actions to see that they are now stuck in pending and not being processed?

    Will report back when I hear from them in case it will help others. ??

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @wpmuse

    I really appreciate you looping us all back in on the progress here!

    From everything we have seen, it is indeed down to a plugin which is blocking WP Cron from working and in turn is blocking schedule actions from running.

    If there is anything specific the WPMU team can share which will help others, please do keep us updated.

    Thanks,

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘woocommerce_deliver_webhook_async pending’ is closed to new replies.