[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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:

  1. Generate 800 orders in the system.

  2. Enable asynchronous indexing for the grids by navigating to: Configuration > Advanced > Developer > Grid Settings.

  3. Verify the order count in the database:

    code language-none
    SELECT COUNT(*) FROM sales_order_grid;
    

    The result should be 800.

  4. Delete the contents of the sales_order_grid table:

    code language-none
    DELETE FROM sales_order_grid;
    
  5. Run the cron jobs that process the sales_*_async_insert queues.

  6. 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3