[wp-trac] [WordPress Trac] #57924: Cron fires twice

WordPress Trac noreply at wordpress.org
Tue Mar 21 15:16:58 UTC 2023


#57924: Cron fires twice
-------------------------------------------+------------------------------
 Reporter:  j3gaming                       |       Owner:  j3gaming
     Type:  defect (bug)                   |      Status:  assigned
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Cron API                       |     Version:  6.1.1
 Severity:  normal                         |  Resolution:
 Keywords:  changes-requested 2nd-opinion  |     Focuses:
-------------------------------------------+------------------------------

Comment (by j3gaming):

 My fix did not work as intended. Multiple crons still fired on (nearly)
 the same moment still get both executed. After the crons run concurrently,
 the bottom of the loop does (return;) exit the duplicate.


 That's where I'm going to leave this, good luck. My "solution"
 (workaround) is to adjust my code within the crons so that being run twice
 at the same time is fine. I will also be scheduling crons in via code (not
 a plug in, sorry WP Control), so that if it's missing, it will re-add it.

 Can someone remove me from being assigned the ticket?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57924#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list