I'll leave this issue here. How to do that is in my opinion up to the implementor.
What we've done; use https://github.com/renatocason/magento2-module-mq and https://github.com/renatocason/magento2-module-mq-mysql to use a lightweight message queue. We then created a consumer and a publisher to add product updates into the queue. It then calls the prewarmer model to re-warm products using the force option. For this purpose, I just refactored the logic in the PrewarmerCommand into a seperate Prewarmer model.
I'll leave this issue here. How to do that is in my opinion up to the implementor.
What we've done; use https://github.com/renatocason/magento2-module-mq and https://github.com/renatocason/magento2-module-mq-mysql to use a lightweight message queue. We then created a consumer and a publisher to add product updates into the queue. It then calls the prewarmer model to re-warm products using the force option. For this purpose, I just refactored the logic in the PrewarmerCommand into a seperate Prewarmer model.