Duplication of events using multiple digests in the same trigger workflow
Hello,
I have a workflow configured with 6 digests. Each of them with exclusive conditions based on custom data (JSON) set on the subscriber profile. Each digest is schedule every day at specific different time. After all the digests, we have an email step. When I trigger 3 events, the first event is digesting 13 events resulting in duplicated data in the email. Out of the 13 events, 1 is from the first event (it bypassed the other digests properly) and then 6 for each of the subsequent events (it did not bypass the other digests properly).
Can you advise on how to remediate to this bug?
Thank you,
Cathleen
8 Replies
@Cathleen Ghenne
Currently, we don't support multiple digests in one workflow. We support one single digest per workflow
Could you please share if you are using
@novu/framework
or creating workflow from UI?Hi, we are creating the workflows through the UI.
@JF Cloutier, you just advanced to level 1!
What's the best approach to allow a user configuration of a digest delay?
Is it duplicating all the workflows?
Let say we have 6 workflows, and want to provide 30 minutes, 1h, 4h, 8h, 1d, 1w options, we have to copy paste in 30 different workflows, correct?
Or is there any other better option?
@JF Cloutier , this is on roadmap to provide native support in the preferences screen, but I am unsure if we can do that before mid Oct
You can do that today natively by using Framwwork, @Pawan Jain do we have an example if that?
We can potentially wait for the support of that feature in october and provide only 1 digest duration for now. Would be cleaner.
I'll check the changelog in October for that 🙂
Thanks!
It will be similar to this example, use
unit
and amount
values from payload
or subscriber.data
field@JF Cloutier
I found this image from your old post
Is this the current setup? Are you using conditions on digest step based on subscriber attributes or payload variables?
