Hi
I just want to verify that the actionscheduler plugin handles group replication in MySQL correctly? It seems like that wp_actionscheduler_actions is not created correctly and I just wonder if the primary keys are created correctly for that table?
]]>I am getting the following error when importing the database. What should I do to import the database?
Error
SQL query: Copy
— — Table structure for table wp_actionscheduler_claims
CREATE TABLE wp_actionscheduler_claims
(claim_id
bigint(20) UNSIGNED NOT NULL,date_created_gmt
datetime NOT NULL DEFAULT ‘0000-00-00 00:00:00’
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
MySQL said: Documentation 1813 – Tablespace for table ‘wp
.wp_actionscheduler_claims
‘ exists. Please DISCARD the tablespace before IMPORT
Hello, I don’t have Action Scheduler installed but I have four database tables (actionscheduler_actions
actionscheduler_claims
actionscheduler_groups
and actionscheduler_logs
) in my WordPress database.
I looked at the actionscheduler_actions
and actionscheduler_logs
tables and they contain recent data like action created
or action complete via WP Cron
or action started via Async Request
.
If I don’t have Action Scheduler installed, what other plugin from AUTOMATTIC uses it to feel this data in the database tables? Jetpack? Is it OK to delete these four database tables from my WordPress database?
Thanks!
]]>Hi Everyone, I am a little confused here on how to implement for our use case.
We have an app, that needs to call 7 different API end points,
Each endpoint, has between 3-5 different requests which need to be made.
Now, I want all 7 end points to run at the same time,
Is this what action scheduler is designed to do?
I am finding that it is still slow, and that I feel we could be calling more APIs at the same time. I feel we are only calling 2-3 apis as a time.
I’m tuning my page load performance. I’ve noticed that on every page there is an individual call to get_option for as_has_wp_comment_logs – rather than this option being loaded as part of wp_load_alloptions.
The call originates from the plugins_loaded hook as follows:
get_option()
wp-includes/option.php:197
ActionScheduler_WPCommentCleaner::has_logs()
wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php:61
ActionScheduler::init()
wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler.php:209
action_scheduler_initialize_3_dot_7_dot_4()
wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/action-scheduler.php:60
ActionScheduler_Versions::initialize_latest_version()
wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_Versions.php:59
I think the problem is that, by default, there is no entry in the database options table for as_has_wp_comment_logs so it cannot be autoloaded. If there was an entry in the options table for as_has_wp_comment_logs with value “no” and autoload=yes, I think that would improve page load performance for most people using your plugin.
]]>hi there
I’m not a PHP developer but I had action Scheduler installed on my WordPress site for our client to help increase the number of processes happening. They are a woocommerce store, a very large 1 with lots of processes that happen.
aftera few weeks we started noticing our sales dipping and some intermittent errors happening. After checking the logs, I can see that action scheduler most causing database connection issues even after increasing the connections and weight time in MySQL.
After disabled in the plugin, these different errors stopped happening and sales returned to normal.
please could you suggest what went wrong and how we could fix it and if we even need to have this app installed? From the documentation and your replies to comments I can see that action Scheduler is included within woocommerce but I’m not sure if the ability to increase the batch size and number of queue etc is available when it is packed with woocommerce
676 Database Lost connection to MySQL server during query for query INSERT INTO
zoyvT_options
(option_name
,option_value
,autoload
) VALUES ('action_scheduler_lock_async-request-runner', '66a954802cd667.70200713|1722373308', 'no') made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set Jul 30, 2024 - 22:00:48
(1 occurrence logged)
677 Database Lost connection to MySQL server during query for query SELECT option_value FROM zoyvT_options WHERE option_name = 'action_scheduler_lock_async-request-runner' made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set, ActionScheduler_OptionLock->get_existing_lock Jul 30, 2024 - 22:00:48
(7 occurrences logged)
678 Database Lost connection to MySQL server during query for query SELECT option_value FROM zoyvT_options WHERE option_name = 'action_scheduler_lock_async-request-runner' made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_Lock->is_locked, ActionScheduler_OptionLock->get_expiration, ActionScheduler_OptionLock->get_existing_lock Jul 30, 2024 - 22:00:48
(7 occurrences logged)
679 Database Lost connection to MySQL server during query for query SELECT option_value FROM zoyvT_options WHERE option_name = 'wc_pending_batch_processes' LIMIT 1 made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->Automattic\WooCommerce\Internal\BatchProcessing\{closure}, Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->remove_or_retry_failed_processors, Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->get_enqueued_processors, get_option Jul 30, 2024 - 22:00:48
(8 occurrences logged)
680 Database The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior. for query SELECT a.action_id FROM zoyvT_actionscheduler_actions a WHERE 1=1 AND a.hook='wc_schedule_pending_batch_processes' AND a.status IN ('in-progress', 'pending') LIMIT 0, 1 made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->Automattic\WooCommerce\Internal\BatchProcessing\{closure}, Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->remove_or_retry_failed_processors, call_user_func, as_has_scheduled_action, ActionScheduler_Store->query_action, ActionScheduler_DBStore->query_actions Jul 30, 2024 - 22:00:48
(7 occurrences logged)
682 Database Lost connection to MySQL server during query for query INSERT INTOzoyvT_options
(option_name
,option_value
,autoload
) VALUES ('action_scheduler_lock_async-request-runner', '66a954340dcee1.95398325|1722373232', 'no') made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set Jul 30, 2024 - 21:59:32
(1 occurrence logged)
692 Database Lost connection to MySQL server during query for query INSERT INTOzoyvT_options
(option_name
,option_value
,autoload
) VALUES ('action_scheduler_lock_async-request-runner', '66a952e7832996.02328847|1722372899', 'no') made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set Jul 30, 2024 - 21:53:59
(1 occurrence logged)
693 Database Lost connection to MySQL server during query for query INSERT INTOzoyvT_options
(option_name
,option_value
,autoload
) VALUES ('action_scheduler_lock_async-request-runner', '66a952a98132c9.59400429|1722372837', 'no') made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set Jul 30, 2024 - 21:52:57
(1 occurrence logged)
925 Database Malformed packet for query SELECT a.action_id FROM zoyvT_actionscheduler_actions a WHERE 1=1 AND a.hook='wc_schedule_pending_batch_processes' AND a.status IN ('in-progress', 'pending') LIMIT 0, 1 made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->Automattic\WooCommerce\Internal\BatchProcessing\{closure}, Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->remove_or_retry_failed_processors, call_user_func, as_has_scheduled_action, ActionScheduler_Store->query_action, ActionScheduler_DBStore->query_actions Jul 30, 2024 - 19:59:31
(1 occurrence logged)
944 Database Lost connection to MySQL server during query for query INSERT INTOzoyvT_options
(option_name
,option_value
,autoload
) VALUES ('action_scheduler_lock_async-request-runner', '66a936444f5a81.00199070|1722365568', 'no') made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set
any information will be much appreciated, no caching was enabled, including no object caching
]]>Hey there –
Occasionally seeing a failed action with this message:
action failed via WP Cron: Unable to update the status of action ###### to in-progress.
Did some Googling etc but not able to find any real explanation or solution.
Any insight greatly appreciated,
TL
My website shows up a lot of Action Scheduler past due. When I check the status, it shows a lot of fatal errors like in the picture.
Please help me check if it is a serious error and how to handle it. Thanks a lot.
]]>
I haven’t ever installed Action Scheduler, but I understand sometimes other plugins use it. While optimizing our database I noticed that wp_actionscheduler_groups lists 2 plugins we no longer use.
My first question is, would it be safe to remove those entries for the 2 plugins we no longer have?
My second question is, considering I just discovered these tables tonight (wp_actionscheduler_actions, wp_actionscheduler_claims, wp_actionscheduler_groups, and wp_actionscheduler_logs) is there a way to optimize or clean or in some way remove old and unneccesary data?
]]>WP 6.4.3
Action Scheduler 3.7.1
Action Scheduler High Volume 1.1.0 (I see that this may no longer be needed with AS3+ but figured I’d give it a shot in hopes of running these things a bit faster.)
Running this configuration on a fairly high-horsepower server / DB setup.
However, when I schedule a lot of immediate “actions” it appears to only process them one at a time. The rest go into past due where they subsequently get processed.
My expectation with this setup was that’d we’d see five of them running at a time.
At the moment I’m not in a position to explore a CLI based solution… just hoping to have a few of these run concurrently.
Also more generally, despite some attractive and well written docs, I’m not totally understanding the difference is between Batch Size, Concurrent Batches, and Queue Runners.
Any sort of analogy or something that might help me wrap my head around that would be great appreciated.
Thank you.
]]>Hello,
I only tested this software but now it is breaking my site if I try to remove it and delete the tables. Please tell me how to remove it ASAP.
This is an awful piece of software.
Thanks
]]>i have this message at backoffice
Action Scheduler: found 39660 unexecuted actions; something is probably going wrong. Read the documentation ?
any idea how to resolve this problem
pending (41661)
past-due(41659)
this are normal numbers????
Action Scheduler: 39604 past-due actions found;
https://img.hotimg.com/messages.jpeg
<a href="https://<a href="https://hotimg.com/O7hRz">https://<a href=”https://hotimg.com/O7hRz” /><img src=”https://img.hotimg.com/messages.jpeg” alt=”messages.jpeg” border=”0″ /></a>
]]>our site uses different database table prefixes from wp_ and the logs and actionscheduler_actions are huge!!!!!! At one point 750,000 entries!!!!!
So I assume any auto purgeing or clearing happens with only standard wp_ table prefixes. Is there anyway to change that to use ours?
I’m trying the following: when someone fills in a form on our website, we send them an email autoresponder.
What I would like to achieve is that the email, instead of being sent immediately, is sent a few minutes later, so that it simulates that the response is from a human.
Is it possible to delay the emails a few minutes using this plugin?
Thank you in advance
]]>We are getting a ton of failed jobs due to this error: “action failed via WP Cron: Unable to update the status of action 3402691 to in-progress.” and this error: “action failed via Admin List Table: Unable to update the status of action 3409762 to in-progress.”
What would prevent the status from being updated?
Note: This is not related to Woocommerce. We are using Action Scheduler for other cron jobs.
]]>I’m getting the following error in my PHP error logs:
WordPress database error Commands out of sync; you can’t run this command now for query INSERT INTO wp_options
(option_name
, option_value
, autoload
) VALUES (‘action_scheduler_lock_async-request-runner’, ‘6593db6771f9f4.99158920|1704188835’, ‘no’) made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set
Action Scheduler keeps failing to run – I’m not sure what to do from here.
]]>HI all. im going crazy so anuually i do a purge of products by creating a CSV stock file with all the SKU’s and set the stock to Zero and the price to null (blank) so that it will update that SKU to null so once i update stocks that are available it will show me what has still is null is basically end of life and i can then mark them off this method is just easier than checking 1 by 1 14 thousand times.
Now the problem is action schedual has pass due crons so its doing them very slowly but more so its causing MySql to use a LOT of CPU power causing everything to slow down.
Server is a VPS with 8cores 12gb ram and 500gb ssd
I have modified via WHM the inoodb cache to match what the Physical Ram has (2/3rds) so instead of taking 700% cpu and 5% memory its doing less CPU and more memory (now like 15-25%) so back end is a little moveable than before.
My only thought is that the crons are taking waaay too much resource
on WP Control i noticed this
“wt_iew_do_cron_import” shows on Recurrence
This interval is less than the WP_CRON_LOCK_TIMEOUT
constant which is set to 60 seconds. Events that use it may not run on time.
and on Scheduled Actions shows this
“Action Scheduler migration in progress. The list of scheduled actions may be incomplete.”
whats showing is the following
Search hook, args and claim ID: Select bulk action
16,733 items? ? Current Page of 1,674 Next page? Last page?
This is records for 3 years mind you it was nearly 18k past-due 2-3 days ago I have put the site on maintanance mode and stop the imports of products and de-activated google ads/facebook/mailchimp hopefully causing it to skip but its still busy going slowly and eating CPU
Under logs on the top (oldest) past due is
I really need help here I dont know how WP CLI works i have access to WHM and CPanel etc i can modify the config files if have to etc i just need to know what to do.
or do i delete all past due what would happen cause the front page they look right.
]]>Hi,
I am using some plugins like Automatewoo and Woocommerce and when I have many task to do in Q I get failed actions and this message
2023-12-16 00:26:37 +0000 action created 2023-12-16 00:26:37 +0000 action started via Async Request 2023-12-16 00:32:00 +0000 action marked as failed after 300 seconds. Unknown error occurred. Check server, PHP and database error logs to diagnose cause
I looked in the logs and I found that there is an error log in wordpress debug that maybe related and it is:
WordPress database error Commands out of sync; you can't run this command now for query SELECT option_value FROM wp_options WHERE option_name = 'action_scheduler_lock_async-request-runner' made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set, ActionScheduler_OptionLock->get_existing_lock, QM_DB->query
Can anyone help me to solve this
Thanks
]]>Hello,
investigating the loosing of performance of my site I fond that some plugins are using this plugin inside to work around the normal wp-cron system. So, every minute wp_cron execute task to activate this workaroud system to bereave all available memory and processor resource from good actions to do nothing useful. (I have been never using woocomerce).
So, it’s acting as a malware.
I found that since I stopped it’s everyminute task in wp_cron system the performance of my site increased in times !!! and google, yandex and others moved my site from red to green performance rating.
So, during the years this hidden plugin kept my site extremely slow but very busy.
But now I see notification of “Action Scheduler” all the time on all admin screens. It annoying but even more, it means that it’s still alive and keeps trying to slow down the site.
How can I clean this malware out or at lease stop it completely?
]]>RankMath updated yesterday and it immediate broke my ability to save any changes to web pages made using Elementor Pro. I simply get “Server 500” error messages. I upped the available memory for 256MB to 1024MB, but it didn’t resolve it. I disabled RankMath and looked on their support. They blame a library within Action Scheduler and have apparently contacted A.S. vis Github to work on a solution. I installed A.S. direct plugin to see if the updated library would resolve it, but no. Anyone here found this issue yet?
]]>Hi there,
We have a large woocommerce website and getting some errors on crons.
Should we install this?
the shareasale plugin is causing a huge delay in checkout processing. Im seeing 30-40sec processing time between clicking purchase and the thank you page. I have disabled all of my plugins and narrowed it down to this plugin. We are losing sales because of this. please fix asap!
]]>The Scheduled Actions option is not found in the Tools menu.
When entering the Tools menu, the Scheduled Actions option is not visible and when entering the link “…/wp-admin/tools.php?page=action-scheduler” it gives me an error 404 Not Found.
My site does not have WooCommerce installed.
]]>Hi
Trying to use Action Scheduler in a plugin and it does not pass WC own phpcs checks.. Any clue why?
Thanks
Folks:
I have an error message: “Action Scheduler:?94?past-due actions?found; something may be wrong.?Read documentation ?”
When I click on the link to see my past-due actions, it tells me that I have 94 past-due actions and 30,958 failed actions.
It also persistently says “Action Scheduler migration in progress. The list of scheduled actions may be incomplete.”
And when I try to see what events have happened: “There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was:
Unexpected HTTP response code: 404“
ALSO, I have no Action Scheduler option in my WordPress Tools menu.
Can anyone help me troubleshoot this?
]]>I have multiple plugins that create the same error code when I activate them.
All revolving around action scheduler and I’ve tried all the workarounds and debugging I’ve seen to help resolve the problem, but nothing has helped.
Even activating the Action Scheduler plugin causes my site to crash. Then trying the repair action scheduler plugin doesn’t resolve anything.
Below is the error message.
Any help is appreciated
An error of type E_ERROR was caused in line 44 of the file /home/innerev1/public_html/wp-content/plugins/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php. Error message: Uncaught RuntimeException: Error saving action: Error saving action: Table ‘./innerev1_wo3194/wp_bfbz_actionscheduler_actions’ is marked as crashed and last (automatic?) repair failed in /home/innerev1/public_html/wp-content/plugins/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44
Stack trace:
#0 /home/innerev1/public_html/wp-content/plugins/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action(Object(ActionScheduler_Action), NULL)
#1 /home/innerev1/public_html/wp-content/plugins/action-scheduler/classes/ActionScheduler_ActionFactory.php(327): ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action))
#2 /home/innerev1/public_html/wp-content/plugins/action-scheduler/classes/ActionScheduler_ActionFactory.php(315): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action))
#3 /home/innerev1/public_html/wp-content/plugins/action-scheduler/functions.php(102): ActionScheduler_ActionFactory->create(Arr
Hi, I have a client’s website that always has this message showing “Action Scheduler migration in progress. The list of scheduled actions may be incomplete.”
In Tools->Scheduled Actions there is one item action_scheduler/migration_hook which is pending. Even if I cancel it, it comes back again.
I don’t have WooCommerce, WPForms or WP SMTP installed, and I don’t know which plugin is using Action Scheduler, or what is causing it to fail. I did see a message saying Auto-Update of a plugin was not run, possible due to a problem with WPCron.
Should I install the Action Scheduler plugin? Will that ‘fix’ any setup issues it may be having? And then would I just check that the problem goes away and if it does, then deactivate and delete the Action Scheduler Plugin?
Thanks
]]>Hello,
I’ve been facing a strange issue with Action Scheduler where if I run ‘as_enqueue_async_action’ the action will run correctly and all code will be executed, however if in that action there’s code to write into any file (including debug.log) then the write will fail most of the time randomly, however the code will run to the end correctly with no errors at all.
Take this example:
//...
as_enqueue_async_action( 'my_test_hook', ['test' => 'hello'] );
//...
//...
add_action( 'my_test_hook', function( $args ) {
$logger = wc_get_logger();
// Write a log entry
$logger->debug('Your log message');
error_log('test');
}, 10, 1 );
//...
In the example, in my case, the logger will log about 1/5th of the my_test_hook
executions.
Things I’ve tried;
If anyone has ANY idea about what could be causing this strange inconsistency, please share it.
Thank you.
I schedule a recurring event using this code:
as_schedule_recurring_action( time(), 2, ‘tsbs-async-execute-hook’, array( ‘tsbs’ => null ), ‘tsbs-thumbnails’ );
After some processing I want to cancel this recurring event with this code:
as_unschedule_all_actions( ‘tsbs-async-execute-hook’ );
The event does not get cancelled!
Any help appreciated
Hello, we have your Action Scheduler plugin. Can you explain to us what should happen with the overdue orders? How are we supposed to take that? How are we supposed to process over 300,000 overdue orders by hand? We strongly suspect that our website will be negatively influenced by this. The database is just updating. We are looking for answers and hope to find them here. The problem is with all the plugin developers, nobody feels responsible for the damage. We are waiting for problem-solving answers. Thanks]]>