When the stock of a product changes from zero or below zero to any positive value, the task of sending an email to the customer is added to OroCommerce message queue.
An email is sent to the customer if the customer subscribed to that product and the inventory level is now positive.