Support » Fixing WordPress » WP Cron : jobs far in the past + multiple instances of the same job

  • Hi !

    I’ve got a little problem with the Wp Cron jobs, and don’t really understand how this happened and what I can do to fix it.

    4 jobs in my WP Cron list are scheduled for a 4 years in the past date. They are executed everytime the cron is triggered, but won’t be removed from the list. Moreover, they are present 3 times in the cron jobs list, when they should be present only one time I think ?

    I don’t know if this information is relevant, but I’m using a real cron job on the server triggering cron execution with WP-CLI, the default WP Cron behavior (execution on page load) is disabled.

    I’ll post my cron jobs list below, so you can see for yourself. The 4 cron jobs I’m talking about are :
    – wp_privacy_delete_old_export_files
    – wp_version_check
    – wp_update_plugins
    – wp_update_themes

    As you can see they’re scheduled for this date : 2018-10-12 13:33:15.
    Adn each of those 4 jobs is present 3 times in the cron jobs. For instance, “wp_privacy_delete_old_export_files” is scheduled now, in 45 minutes, and in 52 minutes. “wp_version_check” is scheduled now, in 4 hours, and in 11 hours. And this is the same for the other too.

    I tried to delete it with “wp cron event delete wp_version_check”, I get a message “Success: Deleted 2 instances of the cron event ‘wp_version_check’.”, but it’s a lie : there’s still the same 3 instances of wp_version_check in the list…

    Any idea why this happens and how to fix it ?

    Thanks !

    MY CURRENT CRON JOBS LIST :
    —————————

    +---------------------------------------------------+---------------------+-----------------------+---------------+
    | hook                                              | next_run_gmt        | next_run_relative     | recurrence    |
    +---------------------------------------------------+---------------------+-----------------------+---------------+
    | wp_privacy_delete_old_export_files                | 2018-10-12 13:33:15 | now                   | 1 hour        |
    | wp_version_check                                  | 2018-10-12 13:33:15 | now                   | 12 hours      |
    | wp_update_plugins                                 | 2018-10-12 13:33:15 | now                   | 12 hours      |
    | wp_update_themes                                  | 2018-10-12 13:33:15 | now                   | 12 hours      |
    | rocket_rucss_pending_jobs                         | 2022-07-26 08:41:22 | now                   | 1 minute      |
    | woocommerce_cleanup_personal_data                 | 2022-07-26 08:41:59 | now                   | 1 day         |
    | woocommerce_tracker_send_event                    | 2022-07-26 08:41:59 | now                   | 1 day         |
    | action_scheduler_run_queue                        | 2022-07-26 08:42:16 | now                   | 1 minute      |
    | action_scheduler_run_queue_rucss                  | 2022-07-26 08:42:19 | now                   | 1 minute      |
    | rocket_partial_preload_cron                       | 2022-07-26 08:43:37 | now                   | 5 minutes     |
    | newsletter                                        | 2022-07-26 08:45:20 | now                   | 5 minutes     |
    | generate_stock_report_hook                        | 2022-07-26 08:45:23 | now                   | 5 minutes     |
    | woosea_cron_hook                                  | 2022-07-26 08:45:53 | now                   | 1 hour        |
    | update_wpml_config_index                          | 2022-07-26 08:46:04 | now                   | 1 day         |
    | wpml_log_rotation                                 | 2022-07-26 08:47:07 | now                   | 1 hour        |
    | wc_admin_process_orders_milestone                 | 2022-07-26 08:47:17 | now                   | 1 hour        |
    | wc_admin_unsnooze_admin_notes                     | 2022-07-26 08:47:23 | now                   | 1 hour        |
    | rediscache_discard_metrics                        | 2022-07-26 08:50:17 | 2 minutes 40 seconds  | 1 hour        |
    | jetpack_clean_nonces                              | 2022-07-26 08:55:23 | 7 minutes 46 seconds  | 1 hour        |
    | wpml-tm-check-overdue-jobs-event                  | 2022-07-26 08:59:06 | 11 minutes 29 seconds | 1 day         |
    | wcj_download_tcpdf_fonts_hook                     | 2022-07-26 09:08:14 | 20 minutes 37 seconds | 1 hour        |
    | rocket_purge_time_event                           | 2022-07-26 09:13:23 | 25 minutes 46 seconds | 1 hour        |
    | wp_privacy_delete_old_export_files                | 2022-07-26 09:33:15 | 45 minutes 38 seconds | 1 hour        |
    | woocommerce_cancel_unpaid_orders                  | 2022-07-26 09:38:46 | 51 minutes 9 seconds  | Non-repeating |
    | wp_privacy_delete_old_export_files                | 2022-07-26 09:40:07 | 52 minutes 30 seconds | 1 hour        |
    | wp_https_detection                                | 2022-07-26 09:58:16 | 1 hour 10 minutes     | 12 hours      |
    | wcal_clear_carts                                  | 2022-07-26 10:08:39 | 1 hour 21 minutes     | 1 day         |
    | borlabsCookieCron                                 | 2022-07-26 10:21:44 | 1 hour 34 minutes     | 1 day         |
    | group_post_scheduler_cron                         | 2022-07-26 11:00:29 | 2 hours 12 minutes    | 12 hours      |
    | sb_instagram_cron_job                             | 2022-07-26 11:24:59 | 2 hours 37 minutes    | 12 hours      |
    | sb_instagram_twicedaily                           | 2022-07-26 11:24:59 | 2 hours 37 minutes    | 12 hours      |
    | sbi_feed_update                                   | 2022-07-26 11:26:02 | 2 hours 38 minutes    | 12 hours      |
    | woocommerce_cleanup_logs                          | 2022-07-26 11:41:49 | 2 hours 54 minutes    | 1 day         |
    | woocommerce_cleanup_rate_limits                   | 2022-07-26 11:41:49 | 2 hours 54 minutes    | 1 day         |
    | wpseo-reindex                                     | 2022-07-26 12:30:17 | 3 hours 42 minutes    | 1 day         |
    | wpseo_permalink_structure_check                   | 2022-07-26 12:30:17 | 3 hours 42 minutes    | 1 day         |
    | wp_site_health_scheduled_check                    | 2022-07-26 12:54:23 | 4 hours 6 minutes     | 1 week        |
    | wcj_check_site_key                                | 2022-07-26 13:08:15 | 4 hours 20 minutes    | 1 day         |
    | redirection_log_delete                            | 2022-07-26 13:21:20 | 4 hours 33 minutes    | 1 day         |
    | check_plugin_updates-booster-plus-for-woocommerce | 2022-07-26 13:28:45 | 4 hours 41 minutes    | 1 day         |
    | wp_version_check                                  | 2022-07-26 13:33:15 | 4 hours 45 minutes    | 12 hours      |
    | wp_update_plugins                                 | 2022-07-26 13:33:15 | 4 hours 45 minutes    | 12 hours      |
    | wp_update_themes                                  | 2022-07-26 13:33:15 | 4 hours 45 minutes    | 12 hours      |
    | woocommerce_cleanup_sessions                      | 2022-07-26 14:41:49 | 5 hours 54 minutes    | 12 hours      |
    | wc_admin_daily                                    | 2022-07-26 14:47:23 | 5 hours 59 minutes    | 1 day         |
    | jetpack_v2_heartbeat                              | 2022-07-26 14:55:23 | 6 hours 7 minutes     | 1 day         |
    | wpo_smush_clear_backup_images                     | 2022-07-26 15:56:33 | 7 hours 8 minutes     | 1 day         |
    | update_network_counts                             | 2022-07-26 16:00:33 | 7 hours 12 minutes    | 12 hours      |
    | yith_wcwl_delete_expired_wishlists                | 2022-07-26 16:03:20 | 7 hours 15 minutes    | 1 day         |
    | wpo_weekly_cron_tasks                             | 2022-07-26 17:56:32 | 9 hours 8 minutes     | 1 week        |
    | wp_version_check                                  | 2022-07-26 20:40:09 | 11 hours 52 minutes   | 12 hours      |
    | wp_update_plugins                                 | 2022-07-26 20:40:12 | 11 hours 52 minutes   | 12 hours      |
    | wp_update_themes                                  | 2022-07-26 20:40:15 | 11 hours 52 minutes   | 12 hours      |
    | fs_data_sync_smart-variations-images              | 2022-07-26 20:46:58 | 11 hours 59 minutes   | 1 day         |
    | woocommerce_scheduled_sales                       | 2022-07-26 22:00:29 | 13 hours 12 minutes   | 1 day         |
    | wpseo-reindex-links                               | 2022-07-27 03:59:02 | 19 hours 11 minutes   | 1 day         |
    | wp_scheduled_delete                               | 2022-07-27 03:59:02 | 19 hours 11 minutes   | 1 day         |
    | delete_expired_transients                         | 2022-07-27 03:59:02 | 19 hours 11 minutes   | 1 day         |
    | wpdesk_tracker_send_event                         | 2022-07-27 07:07:38 | 22 hours 20 minutes   | 1 day         |
    | wcj_download_tcpdf_fonts_hook                     | 2022-07-27 07:10:56 | 22 hours 23 minutes   | 1 day         |
    | wp_scheduled_auto_draft_delete                    | 2022-07-27 08:38:18 | 23 hours 50 minutes   | 1 day         |
    | rocket_cache_dir_size_check                       | 2022-07-27 13:13:23 | 1 day 4 hours         | 1 week        |
    | wpml_tm_send_summary_report                       | 2022-07-28 09:24:59 | 2 days                | Non-repeating |
    | polylang_check_licenses                           | 2022-07-28 11:26:06 | 2 days 2 hours        | 1 week        |
    | rocket_rucss_clean_rows_time_event                | 2022-07-28 13:12:47 | 2 days 4 hours        | 1 week        |
    | sbi_usage_tracking_cron                           | 2022-07-28 13:16:22 | 2 days 4 hours        | 1 week        |
    | cff_usage_tracking_cron                           | 2022-07-29 16:52:36 | 3 days 8 hours        | 1 week        |
    | sb_instagram_feed_issue_email                     | 2022-08-01 08:00:00 | 5 days 23 hours       | 1 week        |
    | sbi_notification_update                           | 2022-08-01 08:00:00 | 5 days 23 hours       | 1 week        |
    | wcal_ts_tracker_send_event                        | 2022-08-01 11:41:43 | 6 days 2 hours        | 1 week        |
    | woocommerce_geoip_updater                         | 2022-08-02 08:42:49 | 6 days 23 hours       | 2 weeks 1 day |
    | otgs_send_components_data                         | 2022-08-15 08:49:01 | 2 weeks 6 days        | Non-repeating |
    +---------------------------------------------------+---------------------+-----------------------+---------------+
  • You must be logged in to reply to this topic.