Scheduling an action fails quite bad when AS tables are missing #856
Labels
priority: normal
The issue/PR is normal priority—not many people are affected or there’s a workaround, etc.
type: enhancement
The issue is a request for an enhancement.
Related to woocommerce/woocommerce#34497, when AS tables are missing,
as_schedule_recurring_action()
throws a fatal exception.This could make it impossible to get to WooCommerce > Status > Action Scheduler, where the tables can be effectively regenerated.
This isn't incorrect in itself and WC could do a better job at capturing and handling these exceptions, but maybe AS could attempt to re-generate those tables "on the fly" or at least fail to report it has been fully initialized when scheduling an action will result in a fatal error.
This might be tricky due to the data-store-agnostic way things work, but maybe something we can explore in the future.
To reproduce:
actionscheduler_actions
.The text was updated successfully, but these errors were encountered: