TL;DR
How to keep track of queued mails which are enqueued by deliver_later, along with their delivery state?
Details
I want to send a bunch of emails async using deliver_later from action mailer. It works so far as in mails are sent async and wait: works as expected. So far so good.
I now want to provide some status info about the status of the sent mails. I.e. a simple string like x/y mails sent which I can query via http or whatever later on (which is not a concern of this question!). My expectation was that I can easily access a job queue or something like that where I can then register a callback like in after_action but apparently there is no such thing and it looks like I need to handcraft that using said callbacks but I cannot find a single resource even mentioning the topic 'delivery state'. It appears as if nobody in the world is interested if and when deliver_latered mails are actually sent oO? The closest thing I could found was how to check for this for the purpose of unit tests, but this is definitely not what I want.