[wp-trac] [WordPress Trac] #51716: WP Cron - looses entries
WordPress Trac
noreply at wordpress.org
Thu Nov 5 20:42:26 UTC 2020
#51716: WP Cron - looses entries
--------------------------+-----------------------------
Reporter: Nate1 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello, I've been working with an external API for submitting orders from
Woocommerce. To ensure the system is responsive I've been calling the
scheduled events to save the orders to the API shortly after the order is
submitted.
I have noted that if items are saved at the same time. One of the events
will not be saved.
This appears to be caused by the cron task being build around a single
database record (object), and in many cases would be completely fine, but
is not reliable when being used in any great capacity.
I understand my use-case isn't potentially what this was designed for, but
there is room for improvement with the scheduled events to ensure
reliability.
I'm not 100% sure if I'm correct here, but it also appears that these
tasks are also run when subsequent web requests are made, is there any
current normalized interface for setting this up to run via an OS cron
task or similar. To ensure other visitors requests aren't slowed down by
checks (small) and events being activated (potentially slow).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51716>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list