[wp-trac] [WordPress Trac] #39340: Scheduled Posts are being missed

WordPress Trac noreply at wordpress.org
Wed Jan 11 10:58:09 UTC 2017


#39340: Scheduled Posts are being missed
----------------------------+------------------------------
 Reporter:  remarkablemike  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:  4.6.1
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by edent):

 Replying to [ticket:39340 remarkablemike]:

 > Has this been fixed in 4.7? Or is this still outstanding?

 I have this problem with 4.7–en_GB.

 I've tried using [https://codex.wordpress.org/Editing_wp-
 config.php#Alternative_Cron Alternative_Cron], disabling plugins,
 disabling Cloudflare, and manually visiting pages during scheduled times -
 but it still doesn't work.

 Other cron jobs work on my server.

 Given the large numbers of people having this problem, and the popularity
 of plugins which claim to solve this issue, I suspect it is a fundamental
 flaw with how WordPress works.

 As per https://developer.wordpress.org/plugins/cron/

 > WP-Cron will run tasks regardless of how old they are. Tasks will sit in
 a queue until a page is loaded to trigger them, thus no task will ever be
 lost.

 This is now demonstrably false.

 My suspicion is that `wp-cron` is failing in an unspecified way. There was
 a proposal to display detailed error messages - but it was abandoned
 https://core.trac.wordpress.org/ticket/23133

 Using [https://developer.wordpress.org/plugins/cron/simple-testing/#view-
 all-currently-scheduled-tasks get_cron_array()], I can see that future
 posts are being placed in the schedule:

 {{{
 [1484813336] => Array
         (
             [publish_future_post] => Array
                 (
                     [0da9aa88af9739142d6b46c1ce06de2d] => Array
                         (
                             [schedule] =>
                             [args] => Array
                                 (
                                     [0] => 24563
                                 )

                         )

                 )

         )

 }}}


 I wonder if there's a problem with the schedule there?  Other jobs look
 like this


 {{{
 [1484187126] => Array
         (
             [jetpack_v2_heartbeat] => Array
                 (
                     [40cd750bba9870f18aada2478b24840a] => Array
                         (
                             [schedule] => daily
                             [args] => Array
                                 (
                                 )

                             [interval] => 86400
                         )

                 )

         )
 }}}

 I don't *think* that there should be a schedule for one off events like
 posting a blog, but I can't be sure.

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


More information about the wp-trac mailing list