Is there a way to run these commands:
php -dmemory_limit=12G bin/magento catalog:images:resize -a
php -dmemory_limit=12G bin/magento queue:consumer:start media.storage.catalog.image.resize
without having to keep the terminal opened?
The process takes several days as we have 900k images in our store. This requires the terminal window to be opened this whole time. As soon as window is closed, the process stops.
This guide talks about running image resize in async mode, but it still requires the window to be opened on both the resize command and the consumer command.