Open yunluo1024 opened 1 week ago
@yunluo1024 did you try to render the attachment asynchronously ? Offload the attachment generation to a separate, asynchronous process. You can save the generated attachment to a storage location (like S3) and then retrieve it when it is ready. I feel in this way , you wont face this issue , because rendering is taking time ,so why not offload it .
π Description
using sendgrid provider to send email with attachments, when rendering a large attachment for around 6 seconds, the email can't be sent and stuck.
π Reproduction steps
In sendgrid provider, when rending a large attachment, the time spent for rendering is around 6 seconds; Novu can't send the email and stuck in email step.
π Expected behavior
It should send email with attachment.
π Actual Behavior with Screenshots
stuck in email sending.
Novu version
Novu SAAS
npm version
No response
node version
No response
π Provide any additional context for the Bug.
it actually did not send the email with attachments.
π Have you spent some time to check if this bug has been raised before?
π’ Have you read the Contributing Guidelines?
Are you willing to submit PR?
None