Just know that you would will have to handle concurrency stuff because the messages sent in response to a trigger happen in a queue that Novu has to get to, not immediately upon your trigger call, and if you’re using Digests then the messages aren’t sent until the digest window elapses.
Thanks. So when I call the trigger I get a response which has a transactionID in it which I can later use to call messages.list. However I cannot know when to call messages.list as I do not know when novu internal workers have actually sent the sms or email?
So maybe I should assume that novu sent stuff but to know what it sent I should query the preferences before triggering so at least I know what it was meant to send.
It’s possible to monitor the progress of the trigger’s jobs by querying the execution details, but I don’t know of any way to have Novu notify you when it’s finished sending messages for a trigger