N
Novu12mo ago
dmgarland

Failed Digest step leads to '0 people did your thing' notifications

Self-hosted in AWS. I see sometimes that digests fail (unknown cause) but then the subsequent steps will have 0 for the step count. This leads us to have to repeat in every step
{{#if step.total_count}}
{{step.total_count }} {{pluralize step.total_count "person" "people" }}
{{ else }}
One
{{/if}} person did the thing
{{#if step.total_count}}
{{step.total_count }} {{pluralize step.total_count "person" "people" }}
{{ else }}
One
{{/if}} person did the thing
Seems repetitive. Is this what everyone else does?
2 Replies
Pawan Jain
Pawan Jain12mo ago
@dmgarland In my view point, this is the correct solution to check the empty digest events
dmgarland
dmgarlandOP12mo ago
I suppose so... it's just for a digest step, even if it's failed I think we can infer that there was at least one event... not zero... in which case say if the digest failed Novu put in a total_count of 1, then I wouldn't need these if statements in every in-app/email step in every workflow
Want results from more Discord servers?
Add your server