[wp-trac] [WordPress Trac] #57271: Cron unschedule / reschedule event errors
WordPress Trac
noreply at wordpress.org
Wed Mar 15 16:52:14 UTC 2023
#57271: Cron unschedule / reschedule event errors
----------------------------------------+------------------------------
Reporter: domainsupport | Owner: audrasjb
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version: 6.0
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------------------
Comment (by j3gaming):
Replying to [comment:24 galbaras]:
Does this logic re-fire a cron? This gets into a tricky situation where
you're actually re-running a cron because of a database issue, but what if
the cron is doing non-database related things, processing data or emailing
people for example?
Need to either be able to pick up from exactly where you left off, or if a
cron hit a connection error, I wouldn't schedule it to try again asap.
Just wait until it's regularly scheduled next. Or, maybe a user defined
option for if a cron should retry if you get a database error.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57271#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list