• Resolved igianni84

    (@igianni84)


    Hi, I noticed that webhooks are also called more and more often after 1 hour.

    As you can see from the screenshot (https://imgur.com/a/pC0Itn3), the order was updated at 08:53, while the webhook was called at 10:20 (1 hour and 30 after).

    Why?

    • This topic was modified 4 years, 4 months ago by igianni84.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    It doesn’t seem like the screenshot made it through – Can you share that once more?

    Also, can you share a bit more on the setup of your webhooks? What is it meant to be doing?

    Thread Starter igianni84

    (@igianni84)

    This is the screenshot -> https://imgur.com/a/pC0Itn3

    The webhook is triggered when an order is updated. The webhook invokes my php file which does a series of operations including generating a csv with the order details.

    Hi @igianni84,

    Thank you for sending that over. That is quite a large amount of time and not what we would expect. They should typically send within a minute or so of the action.

    When a webhook is set to be used, it’s added as a scheduled action. It’s possible that something is not operating correctly with the Action Scheduler on the site. You can view all scheduled actions by going to Tools > Scheduled Actions or in WooCommerce > Settings > Scheduled Actions.

    You can check here for pending as well as failed actions. Search for “webhook” and see if you find anything that appears to be off with them.

    It’s also possible to run webhooks synchronously instead of via a schedule. You can do that by adding this filter to your theme’s functions.php file or something like the Code Snippets plugin.

    
    apply_filters( 'woocommerce_webhook_deliver_async', '__return_false' );
    

    You might try that and see if it works more reliably for you. Let us know what you find out.

    Thanks!

    AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Huge latency in calling webhooks’ is closed to new replies.