ACSD-69237: sales_*_async_insert cron jobs process only 100 entries per run
The ACSD-69237 patch fixes the issue where the sales_*_async_insert cron jobs processed only 100 entries per run when inserting records into the sales grid tables, instead of processing all pending rows in batches. This patch is available when the Quality Patches Tool (QPT) 1.1.77 is installed. The patch ID is ACSD-69237. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.5-p15
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.8-p3
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
The sales_*_async_insert cron jobs process only 100 entries per run when inserting records into the sales grid tables, even when more pending rows exist, resulting in incomplete updates to tables such as sales_order_grid.
Steps to reproduce:
-
Generate 800 orders in the system.
-
Enable asynchronous indexing for the grids by navigating to: Configuration > Advanced > Developer > Grid Settings.
-
Verify the order count in the database:
code language-none SELECT COUNT(*) FROM sales_order_grid;The result should be 800.
-
Delete the contents of the
sales_order_gridtable:code language-none DELETE FROM sales_order_grid; -
Run the cron jobs that process the
sales_*_async_insertqueues. -
Check the order count in the database again:
code language-none SELECT COUNT(*) FROM sales_order_grid;
Expected results:
All 800 missing orders are inserted into the sales_order_grid table through a single sales_grid_order_async_insert cron job run.
Actual results:
Only 100 of the 800 missing orders are inserted into the sales_order_grid table during a single sales_grid_order_async_insert cron job run.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.