woocommerce / action-scheduler

A scalable, traceable job queue for background processing large queues of tasks in WordPress. Specifically designed for distribution in WordPress plugins (and themes) - no server access required.
https://actionscheduler.org
GNU General Public License v3.0
626 stars 113 forks source link

Large number of pending #847

Closed NAROLLES closed 1 year ago

NAROLLES commented 2 years ago

Large number of pending

Hello On my Wordpress site (Woocommerce Buddypress etc - 17,000 posts) I have at least two main extensions that use Action Scheduled: Rank Math and Wp Rocket.

On my Wp installation cron is active Both installations produce a lot of pending action. (15000 - cache preload action of each post for example) It gives the impression that the system cannot manage the flow of pending If I disable Wp cron and put a cron every minute .... the flow is regulated but I have cron actions from my other extensions that no longer work.

I am not an expert and I count on you to help me. Rocket support is working on it but it doesn't seem to have found a solution so far.

Is it necessary to install your plugin on my site...? Can we divert all crons to your plugin? Is there no conflict if several applications have your plugin inside?

I'm not an expert but I have access to cpanel and whm

`

WordPress Environment

WordPress address (URL): https://www.jardinerie-animalerie-fleuriste.fr Site address (URL): https://www.jardinerie-animalerie-fleuriste.fr WC Version: 6.8.2 REST API Version: ✔ 6.8.2 WC Blocks Version: ✔ 8.0.0 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 6.0.2 WP Multisite: – WP Memory Limit: 8 Go WP Debug Mode: – WP Cron: ✔ Language: fr_FR External object cache: ✔

Server Environment

Server Info: Apache PHP Version: 8.1.9 PHP Post Max Size: 4 Go PHP Time Limit: 2500 PHP Max Input Vars: 20000 cURL Version: 7.84.0 OpenSSL/1.1.1q

SUHOSIN Installed: – MySQL Version: 10.3.36-MariaDB Max Upload Size: 128 Mo Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔

Database

WC Database Version: 6.8.2 WC Database Prefix: wp_ Taille totale de la base de données: 2773.41MB Taille de la base de données: 1868.93MB Taille de l’index: 904.48MB wp_woocommerce_sessions: Données : 0.16MB + Index : 0.02MB + Moteur InnoDB wp_woocommerce_api_keys: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_woocommerce_attribute_taxonomies: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_woocommerce_downloadable_product_permissions: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_woocommerce_order_items: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_woocommerce_order_itemmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_woocommerce_tax_rates: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_woocommerce_tax_rate_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_woocommerce_shipping_zones: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_woocommerce_shipping_zone_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_woocommerce_shipping_zone_methods: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_woocommerce_payment_tokens: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_woocommerce_payment_tokenmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_woocommerce_log: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB statPub: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_actionscheduler_actions: Données : 3.03MB + Index : 3.22MB + Moteur InnoDB wp_actionscheduler_claims: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_actionscheduler_groups: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_actionscheduler_logs: Données : 39.56MB + Index : 22.03MB + Moteur InnoDB wp_ac_segments: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_admin_columns: Données : 0.05MB + Index : 0.02MB + Moteur InnoDB wp_adrotate: Données : 0.05MB + Index : 0.00MB + Moteur InnoDB wp_adrotate_groups: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_adrotate_linkmeta: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_adrotate_schedule: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_adrotate_stats: Données : 0.11MB + Index : 0.09MB + Moteur InnoDB wp_adrotate_stats_archive: Données : 0.08MB + Index : 0.09MB + Moteur InnoDB wp_adrotate_tracker: Données : 1.02MB + Index : 0.34MB + Moteur InnoDB wp_bb_email_queue: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_bp_activity: Données : 0.02MB + Index : 0.16MB + Moteur InnoDB wp_bp_activity_meta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_bp_document: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB wp_bp_document_folder: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_bp_document_folder_meta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_bp_document_meta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_bp_follow: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_bp_groups: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_bp_groups_groupmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_bp_groups_members: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB wp_bp_invitations: Données : 0.02MB + Index : 0.14MB + Moteur InnoDB wp_bp_media: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB wp_bp_media_albums: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_bp_messages_messages: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_bp_messages_meta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_bp_messages_notices: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_bp_messages_recipients: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB wp_bp_xprofile_data: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_bp_xprofile_fields: Données : 0.06MB + Index : 0.08MB + Moteur InnoDB wp_bp_xprofile_groups: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_bp_xprofile_meta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_commentmeta: Données : 0.06MB + Index : 0.05MB + Moteur InnoDB wp_comments: Données : 1.52MB + Index : 0.39MB + Moteur InnoDB wp_e_events: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_e_notes: Données : 0.02MB + Index : 0.17MB + Moteur InnoDB wp_e_notes_users_relations: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_fbv: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_fbv_attachment_folder: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_gde_profiles: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_gde_secure: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_gglcptch_allowlist: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_imagify_files: Données : 5.52MB + Index : 2.44MB + Moteur InnoDB wp_imagify_folders: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_links: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_lockdowns: Données : 6.52MB + Index : 0.00MB + Moteur InnoDB wp_login_fails: Données : 39.56MB + Index : 0.00MB + Moteur InnoDB wp_mailpoet_custom_fields: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_dynamic_segment_filters: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_feature_flags: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_forms: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_mailpoet_log: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_mailpoet_mapping_to_external_entities: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_newsletters: Données : 20.42MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_newsletter_links: Données : 43.56MB + Index : 35.73MB + Moteur InnoDB wp_mailpoet_newsletter_option: Données : 0.09MB + Index : 0.05MB + Moteur InnoDB wp_mailpoet_newsletter_option_fields: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_newsletter_posts: Données : 2.52MB + Index : 0.47MB + Moteur InnoDB wp_mailpoet_newsletter_segment: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_newsletter_templates: Données : 13.52MB + Index : 0.00MB + Moteur InnoDB wp_mailpoet_premium_custom_table: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_premium_newsletter_extra_data: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_scheduled_tasks: Données : 5.52MB + Index : 0.44MB + Moteur InnoDB wp_mailpoet_scheduled_task_subscribers: Données : 296.84MB + Index : 91.61MB + Moteur InnoDB wp_mailpoet_segments: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_sending_queues: Données : 113.52MB + Index : 0.09MB + Moteur InnoDB wp_mailpoet_settings: Données : 0.05MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_statistics_bounces: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_mailpoet_statistics_clicks: Données : 18.52MB + Index : 20.06MB + Moteur InnoDB wp_mailpoet_statistics_forms: Données : 0.47MB + Index : 0.23MB + Moteur InnoDB wp_mailpoet_statistics_newsletters: Données : 271.75MB + Index : 175.22MB + Moteur InnoDB wp_mailpoet_statistics_opens: Données : 66.58MB + Index : 137.30MB + Moteur InnoDB wp_mailpoet_statistics_unsubscribes: Données : 0.20MB + Index : 0.30MB + Moteur InnoDB wp_mailpoet_statistics_woocommerce_purchases: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_mailpoet_stats_notifications: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_subscribers: Données : 1.52MB + Index : 1.02MB + Moteur InnoDB wp_mailpoet_subscriber_custom_field: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_subscriber_ips: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_subscriber_segment: Données : 0.25MB + Index : 0.17MB + Moteur InnoDB wp_mailpoet_subscriber_tag: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_tags: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_user_agents: Données : 3.52MB + Index : 0.27MB + Moteur InnoDB wp_mailpoet_user_flags: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mepr_events: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB wp_mepr_jobs: Données : 0.02MB + Index : 0.14MB + Moteur InnoDB wp_mepr_members: Données : 0.02MB + Index : 0.27MB + Moteur InnoDB wp_mepr_rule_access_conditions: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_mepr_subscriptions: Données : 0.02MB + Index : 0.30MB + Moteur InnoDB wp_mepr_subscription_meta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_mepr_tax_rates: Données : 0.02MB + Index : 0.14MB + Moteur InnoDB wp_mepr_tax_rate_locations: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_mepr_transactions: Données : 0.02MB + Index : 0.33MB + Moteur InnoDB wp_mepr_transaction_meta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_options: Données : 5.25MB + Index : 0.23MB + Moteur InnoDB wp_pollsa: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_pollsip: Données : 0.30MB + Index : 0.27MB + Moteur InnoDB wp_pollsq: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_popularpostsdata: Données : 1.52MB + Index : 0.00MB + Moteur InnoDB wp_popularpostssummary: Données : 35.56MB + Index : 38.58MB + Moteur InnoDB wp_popularpoststransients: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_postmeta: Données : 392.89MB + Index : 73.20MB + Moteur InnoDB wp_posts: Données : 134.63MB + Index : 27.64MB + Moteur InnoDB wp_rank_math_404_logs: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_rank_math_analytics_adsense: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_rank_math_analytics_ga: Données : 15.52MB + Index : 12.61MB + Moteur InnoDB wp_rank_math_analytics_gsc: Données : 222.75MB + Index : 226.70MB + Moteur InnoDB wp_rank_math_analytics_inspections: Données : 50.56MB + Index : 4.61MB + Moteur InnoDB wp_rank_math_analytics_keyword_manager: Données : 0.05MB + Index : 0.00MB + Moteur InnoDB wp_rank_math_analytics_objects: Données : 6.52MB + Index : 2.52MB + Moteur InnoDB wp_rank_math_internal_links: Données : 1.52MB + Index : 0.20MB + Moteur InnoDB wp_rank_math_internal_meta: Données : 0.17MB + Index : 0.00MB + Moteur InnoDB wp_rank_math_redirections: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_rank_math_redirections_cache: Données : 3.52MB + Index : 0.36MB + Moteur InnoDB wp_signups: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_termmeta: Données : 0.06MB + Index : 0.06MB + Moteur InnoDB wp_terms: Données : 0.06MB + Index : 0.09MB + Moteur InnoDB wp_term_relationships: Données : 8.52MB + Index : 4.52MB + Moteur InnoDB wp_term_taxonomy: Données : 0.06MB + Index : 0.03MB + Moteur InnoDB wp_tm_taskmeta: Données : 0.05MB + Index : 0.03MB + Moteur InnoDB wp_tm_tasks: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_usermeta: Données : 0.28MB + Index : 0.25MB + Moteur InnoDB wp_users: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_wcsc_error_logs: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wcsc_logs: Données : 1.52MB + Index : 0.63MB + Moteur InnoDB wp_wc_admin_notes: Données : 0.06MB + Index : 0.00MB + Moteur InnoDB wp_wc_admin_note_actions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wc_category_lookup: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wc_customer_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_wc_download_log: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_wc_order_coupon_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_wc_order_product_lookup: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_wc_order_stats: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_wc_order_tax_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_wc_product_attributes_lookup: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wc_product_download_directories: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wc_product_meta_lookup: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB wp_wc_rate_limits: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wc_reserved_stock: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wc_tax_rate_classes: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wc_webhooks: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wfblockediplog: Données : 0.27MB + Index : 0.00MB + Moteur InnoDB wp_wfblocks7: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_wfconfig: Données : 0.47MB + Index : 0.00MB + Moteur InnoDB wp_wfcrawlers: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wffilechanges: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wffilemods: Données : 11.55MB + Index : 0.00MB + Moteur InnoDB wp_wfhits: Données : 2.02MB + Index : 0.23MB + Moteur InnoDB wp_wfhoover: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wfissues: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_wfknownfilelist: Données : 5.52MB + Index : 0.00MB + Moteur InnoDB wp_wflivetraffichuman: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wflocs: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wflogins: Données : 0.47MB + Index : 0.17MB + Moteur InnoDB wp_wfls_2fa_secrets: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wfls_settings: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wfnotifications: Données : 0.06MB + Index : 0.00MB + Moteur InnoDB wp_wfpendingissues: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_wfreversecache: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wfsnipcache: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_wfstatus: Données : 0.14MB + Index : 0.09MB + Moteur InnoDB wp_wftrafficrates: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wpr_rocket_cache: Données : 4.52MB + Index : 8.02MB + Moteur InnoDB wp_wpr_rucss_used_css: Données : 4.03MB + Index : 7.20MB + Moteur InnoDB

Post Type Counts

acf: 2 acf-field: 14 acf-field-group: 2 action-box: 1 amp_validated_url: 64 attachment: 28152 bp-email: 21 customize_changeset: 59 custom_css: 5 displayed_gallery: 97 elementor_font: 2 elementor_library: 53 elementor_snippet: 4 enseigne: 40 et_pb_layout: 19 event: 5 event-recurring: 1 gal_display_source: 5 gce_feed: 1 hollerbox: 7 imc_email_campaign: 1 jet-menu: 12 job_listing: 1 layout: 4 location: 1 mailpoet_page: 1 mc4wp-form: 1 memberpresscoupon: 2 memberpressgroup: 2 memberpressproduct: 11 ml-slider: 1 nav_menu_item: 122 ngg_album: 22 ngg_gallery: 172 ngg_pictures: 7117 oceanwp_library: 1 ocean_posts_slider: 1 oembed_cache: 54984 origine: 8 owm-weather: 1 page: 40 popup: 1 popup_theme: 6 post: 17311 product: 2 product_variation: 12 revision: 1523 slideshow: 15 testimonial: 1 tube_skipped_video: 124 tube_source: 4 visualizer: 1 wc_membership_plan: 2 wp_global_styles: 3 wysijap: 3

Security

Secure connection (HTTPS): ✔ Hide errors from visitors: ✔

Active Plugins (39)

Admin Columns Pro: par AdminColumns.com – 5.7.3 AdRotate Professional: par Arnan de Gans – 5.8.23 Advanced Custom Fields: par Delicious Brains – 5.12.3 Akismet Anti-Spam: par Automattic – 5.0 BuddyPress: par La communauté BuddyPress – 10.4.0 BIALTY - Bulk Image Alt Text (Alt tag, Alt Attribute) with Yoast SEO + WooCommerce: par Pagup – 1.4.5.1 Classic Editor: par Contributeurs et contributrices WordPress – 1.6.2 Default featured image: par Jan Willem Ostendorp – 1.7.2.1 Yoast Duplicate Post: par Enrico Battocchi & l’équipe Yoast – 4.5 GTM4WP: par Thomas Geiger – 1.16.1 Calendrier éditorial de WordPress: par Colin Vernon Justin Evans Joachim Kudish Mary Vogt et Zack Grossbart – 3.7.12

Elementor Pro: par Elementor.com – 3.7.5 Elementor: par Elementor.com – 3.7.4 Folders Pro: par Premio – 2.8.3 reCaptcha par BestWebSoft: par BestWebSoft – 1.67 Google Doc Embedder: par Kevin Davis Dan Lester – 2.6.4

Imagify: par WP Rocket – 2.0 Login LockDown: par Michael VanDeMar – v1.8.1 MailPoet 3 Premium (New): par MailPoet – 3.96.0 MailPoet 3 (New): par MailPoet – 3.96.1 OneSignal Push Notifications: par OneSignal – 2.2.7 OWM Weather: par Uwe Jacobs – 5.6.3 Public Post Preview: par Dominik Schilling – 2.9.3 Rank Math SEO PRO: par Rank Math – 3.0.19 Rank Math SEO: par Rank Math – 1.0.96 SQL Buddy: par Delicious Brains – 1.0.0 Advanced Editor Tools (précédemment TinyMCE Advanced): par Automattic – 5.6.0 WooCommerce EU VAT Number: par WooCommerce – 2.5.0 Teams for WooCommerce Memberships: par SkyVerge – 1.6.2 WooCommerce Memberships: par SkyVerge – 1.23.0 Paiements WooCommerce: par Automattic – 4.6.0 Abonnements WooCommerce: par WooCommerce – 4.5.1 WooCommerce: par Automattic – 6.8.2 Wordfence Security: par Wordfence – 7.6.0 WordPress Popular Posts: par Hector Cabrera – 6.0.5 WP-Cron Status Checker: par Webhead LLC – 1.2.4 WP Crontrol: par John Blackbourn & contributeurs – 1.14.0 WP-Polls: par Lester 'GaMerZ' Chan – 2.76.0 WP Rocket: par WP Media – 3.12.0.5

Inactive Plugins (2)

.TUBE Video Curator: par .TUBE gTLD – 1.1.9 Transients Manager: par WPBeginner – 2.0.3

Dropin Plugins (3)

advanced-cache.php: advanced-cache.php maintenance.php: maintenance.php object-cache.php: Memcached Redux

Settings

API Enabled: – Force SSL: ✔ Currency: EUR (€) Currency Position: right_space Thousand Separator: Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5)

Connected to WooCommerce.com: ✔ Enforce Approved Product Download Directories: –

WC Pages

Base de la boutique: #687293 - /boutique/ Panier: #687294 - /panier/ Commander: #687295 - /commander/ Mon compte: #687296 - /mon-compte/ Conditions générales de vente et d’utilisation: #399402 - /politique-de-confidentialite/

Theme

Name: Hello Elementor Child Version: 1.0.1 Author URL: https://elementor.com/ Child Theme: ✔ Parent Theme Name: Hello Elementor Parent Theme Version: 2.6.1 Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash WooCommerce Support: ✔

Templates

Overrides: –

Memberships

Restriction mode:: Hide content only Public content:: Articles: 1 item Excluded from discounts:: – Membership plans:: 2 Accès Abonnement Basic:: Members: 0Access method: User account registrationAccess length: Unlimited Subscription: No❌ The plan contains a rule to restrict all Page MailPoet to non-members Accès Abonnement Premium:: Members: 0Access method: Product(s) purchaseAccess length: Unlimited Subscription: YesInstallment plan: No

Abonnements

WCS_DEBUG: ✔ Non Subscriptions Mode: ✔ En direct Subscriptions Live URL: https://www.jardinerie-animalerie-fleuriste.fr Subscription Statuses: – WooCommerce Account Connected: ✔ Yes Active Product Key: ✔ Yes Report Cache Enabled: ✔ Oui Cache Update Failures: ✔ 0 échecs

Configuration de la boutique

Country / State: France

Prise en charge de la passerelle de paiement

Virement bancaire: products Paiements WooCommerce: products refunds multiple_subscriptions subscription_cancellation subscription_payment_method_change_admin subscription_payment_method_change_customer subscription_payment_method_change subscription_reactivation subscription_suspension subscriptions subscription_amount_changes subscription_date_changes tokenization add_payment_method

Admin

Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page

Disabled Features: minified-js settings

Daily Cron: ✔ Next scheduled: 2022-09-06 18:29:57 +02:00 Options: ✔ Notes: 70 Onboarding: completed

WooCommerce Payments

Version: 4.6.0 Connected to WPCOM: Oui Blog ID: 59546224 Account ID: acct_1K9PwR2HOLPs0LMv

Action Scheduler

Complete: 1 919 Oldest: 2022-08-21 12:38:40 +0200 Newest: 2022-09-04 12:06:47 +0200

Pending: 2 544 Oldest: -0001-11-30 00:09:21 +0009 Newest: 2022-09-06 19:36:00 +0200

In-progress: 1 Oldest: – Newest: –

Failed: 2 Oldest: – Newest: –

Status report information

Generated at: 2022-09-06 09:26:20 +02:00 `

barryhughes commented 2 years ago

Hi @NAROLLES,

Some great questions, there 🙃

If I disable Wp cron and put a cron every minute

You do not in fact need to disable WP Cron. If you have a sufficient level of access, you can add a crontab rule like the following which will only target the Action Scheduler queue (and WP Cron will continue to do its thing—so, best of both worlds):

# This strategy would depend on WP CLI also being installed. 
# Update paths (to WP CLI binary and to WP) as needed.
* * * * * wp --path=/path/to/wordpress action-scheduler run

A further alternative, which may be easier, is to install and activate the Action Scheduler High Volume plugin (see here).

Is it necessary to install your plugin on my site...?

No, generally speaking this is not necessary unless for example you want to take advantage of the very latest version of the library, in cases where your plugins continue to ship older versions.

Can we divert all crons to your plugin?

It's possible, but I would consider this to be an advanced customization task and not something we can help you with directly. See this FAQ entry to learn more.

Most of the time, Action Scheduler runs harminously alongside (or, 'on top of', depending on your perspective) WP Cron and there is no need to do anything like this.

Is there no conflict if several applications have your plugin inside?

Conflicts are possible, but a lot of work has gone into reducing this risk.

When several plugins include Action Scheduler, a version resolution process tries to ensure that only one version (the highest available version) is actually loaded—and all of the 'parent plugins' then use that version.

We are very careful when updating Action Scheduler to preserve backwards compatibility so, in the vast majority of cases, having multiple plugins each with their own copy of Action Scheduler is perfectly fine and not at all uncommon.

NAROLLES commented 1 year ago

Hello @barryhughes Thank you for your quick and clear response. I'm not an expert

I followed your advice.....But I get an error /usr/local/cpanel/bin/jailshell: wp: command not found I wonder if it is not a path problem in the cron?

Here are the links spotted in my cpanel containing Action Scheduled

/public_html/wp-content/plugins/mailpoet/vendor/woocommerce/action-scheduler/action-scheduler.php /public_html/wp-content/plugins/wp-rocket/inc/Dependencies/ActionScheduler/action-scheduler.php /public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler /public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/action-scheduler.php /public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wcs-action-scheduler.php /public_html/wp-content/plugins/woocommerce-memberships-for-teams/vendor/woocommerce/action-scheduler /public_html/wp-content/plugins/woocommerce-memberships-for-teams/vendor/woocommerce/action-scheduler/action-scheduler.php /public_html/wp-content/plugins/woocommerce-memberships/lib/prospress/action-scheduler /public_html/wp-content/plugins/woocommerce-memberships/lib/prospress/action-scheduler/action-scheduler.php /public_html/wp-content/plugins/woocommerce-memberships/vendor/woocommerce/action-scheduler /public_html/wp-content/plugins/woocommerce-memberships/vendor/woocommerce/action-scheduler/action-scheduler.php /public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-action-scheduler-service.php /public_html/wp-content/plugins/woocommerce-payments/vendor/woocommerce/subscriptions-core/includes/class-wcs-action-scheduler.php /public_html/wp-content/plugins/woocommerce/packages/action-scheduler /public_html/wp-content/plugins/woocommerce/packages/action-scheduler/action-scheduler.php

Incidentally, do you notice an anomaly in these links .... I also know that rocket is looking for difficulties .... and I see that it is the only one not using vendor ....

Thanks for your enlightenment.

I don't use wp cli

barryhughes commented 1 year ago

I followed your advice.....But I get an error /usr/local/cpanel/bin/jailshell: wp: command not found I wonder if it is not a path problem in the cron?

You would need WP CLI to be installed to use the particular crontab strategy I suggested, I'm afraid. So, if that isn't possible, I'd recommend looking into the High Volume plugin.

Incidentally, do you notice an anomaly in these links .... I also know that rocket is looking for difficulties .... and I see that it is the only one not using vendor

The directory name ("vendor" or "packages") shouldn't matter.

Often the name of this directory indicates the method through which Action Scheduler and other libraries are included in the parent plugin. For example, the "vendor" directory tends to suggest the Composer packaging tool has been used whereas "packages" might suggest it has been manually included without using a specific packaging tool ... but there are many valid approaches and, again, this decision should not create any difficulties.

NAROLLES commented 12 months ago

@barryhughes Good morning I come back to you the plugin is installed but I don't know how to know if it works correctly Thank you for your help

barryhughes commented 12 months ago

Hi @NAROLLES,

For a quick confidence test, visit the Tools ▸ Scheduled Actions screen.

If for example you see a mixture of statuses (some completed, or failed, and some pending), and so long as you don't see any notices warning of past-due actions, things are likely in a good state.

NAROLLES commented 12 months ago

Hi @barryhughes

thanks for your help

For this afternoon (114369) | [Canceled] (6) | Completed (114176) | [Failed] (154) | Pending the majority in failed : mailpoet/cron/daemon-run

i see in wc error log this :

2023-09-11T11:42:29+00:00 CRITICAL Uncaught InvalidArgumentException: Unidentified action 7947525 in /home/jardinerieanimal/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:1085 Stack trace:

0 /home/jardinerieanimal/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(120): ActionScheduler_DBStore->mark_failure(7947525)

1 /home/jardinerieanimal/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(98): ActionScheduler_Abstract_QueueRunner->handle_action_error(7947525, Object(Exception), 'WP Cron', true)

2 /home/jardinerieanimal/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(169): ActionScheduler_Abstract_QueueRunner->process_action(7947525, 'WP Cron')

3 /home/jardinerieanimal/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(139): ActionScheduler_QueueRunner->do_batch(100, 'WP Cron')

4 /home/jardinerieanimal/public_html/wp-content/plugins/action-scheduler-high-volume-master/action-scheduler-high-volume.php(108): ActionScheduler_QueueRunner->run()

5 /home/jardinerieanimal/public_html/wp-includes/class-wp-hook.php(310): ashp_create_additional_runners('')

6 /home/jardinerieanimal/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)

7 /home/jardinerieanimal/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

8 /home/jardinerieanimal/public_html/wp-admin/admin-ajax.php(203): do_action('wp_ajaxnopriv...')

9 {main}

thrown dans /home/jardinerieanimal/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php à la ligne 1085

barryhughes commented 12 months ago

That error could happen if the action is deleted before its status can be set to 'failed'. I'm a little unsure why that would be happening, though.

NAROLLES commented 12 months ago

HI The number of failures increases here is the detail for one of the failed

2023-09-10 06:10:17 +0000 created action 2023-09-10 06:10:18 +0000 action started via WP Cron 2023-09-10 06:10:18 +0000 action failed via WP Cron: Unable to update the status of action 7927392 to in-progress.

NAROLLES commented 11 months ago

@barryhughes I see in admin this message "Maximum simultaneous queues already in progress (2 queues). No additional queues will begin processing until the current queues are complete." I thought the plugin allowed a lot more queues ? Thanks

barryhughes commented 11 months ago

I thought the plugin allowed a lot more queues ?

Actually, by default, only one queue is allowed at any given time. However, you can override this via the action_scheduler_queue_runner_concurrent_batches filter hook. For example, this would set it to a maximum of 2 (which, I'm guessing, you already have in place—perhaps via code in one of your plugins):

add_filter( 'action_scheduler_queue_runner_concurrent_batches', function () {
    return 2;
} );
NAROLLES commented 11 months ago

Hi @barryhughes With the Action Scheduler - High Volume plugin https://actionscheduler.org/perf/ it is said that the plugin makes all the improvements but I see that there are possible variables So instead of the plugin, should we put all the hooks individually in function.php to adjust the variables? For example it is said that we can increase to 10 queues. The hight volume plugin goes up to ten or you have to put the corresponding hook instead Thank you for your enlightenment

barryhughes commented 11 months ago

So instead of the plugin, should we put all the hooks individually in function.php to adjust the variables?

Yes, you could set the same thing up via custom code (whether in your theme's functions.php file, or a plugin). In fact, you could simply rename the high volume plugin and tweak it as needed: that has the advantage that you can easily deactivate it if needed, for troubleshooting purposes (vs having to edit code).

For example it is said that we can increase to 10 queues. The hight volume plugin goes up to ten or you have to put the corresponding hook instead

It doubles the number of allowed concurrent batches. So, in most cases, this gives you upto 2 concurrent queues.

Remember that every site and hosting environment presents its own unique challenges and constraints. A maximum of 10 may not enough, or it may cause problems (or it might be just right). My advice is to make a series of small incremental changes and be ready to revert them.