Thank you for that detailed reply. Its more advanced than I may be able to write myself, I only recently moved from Magento 2 to Shopify, wil give it a go though.
I may have missed it but when does the tag:processed get removed for the next run. Im looking to send an email out say every 3 days at 9am to a particular customer segment which I did a query on, so do I leave that as I’ve already got;
“metafields.custom.customer_group = ‘Re-Seller’”
How is the tag removed once the email is sent ?