ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 40 - AD0-E716 discussion

Report
Export

When checking the cron logs, an Adobe Commerce developer sees that the following job occurs daily: main.INFO: Cron Dob inventory_cleanup_reservations is successfully finished. However, the inventory_reservation table in the database is not emptied. Why are there records remaining in the inventory_reservation table?

A.
Only reservations matching canceled orders are removed by the cron job.
Answers
A.
Only reservations matching canceled orders are removed by the cron job.
B.
Only reservations no longer needed are removed by the cron job.
Answers
B.
Only reservations no longer needed are removed by the cron job.
C.
The 'Auto Cleanup' feature from Multi Source Inventory was disabled in configuration.
Answers
C.
The 'Auto Cleanup' feature from Multi Source Inventory was disabled in configuration.
Suggested answer: B

Explanation:

The reason why there are records remaining in the inventory_reservation table is that only reservations no longer needed are removed by the cron job. The inventory_reservation table tracks the quantity of each product in each order and creates a reservation for each product when an order is placed, shipped, cancelled or refunded. The initial reservation has a negative quantity value and the subsequent reservations have positive values. When the order is complete, the sum of all reservations for the product is zero. The cron job removes only those reservations that have a zero sum from the table, leaving behind any reservations that are still needed for incomplete orders. Verified

Reference: [Magento 2.4 DevDocs] [Magento Stack Exchange]

asked 02/10/2024
Justin Kim
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first