lil-lab / recnet

A human-driven recommendation system for academic readings.
https://recnet.io
MIT License
3 stars 1 forks source link

[recnet-api] Build weekly digest email feature #204

Closed joannechen1223 closed 2 months ago

joannechen1223 commented 2 months ago

Description

As we migrated the whole system to a new backend on AWS with Nest JS, we also moved the sending email cron job to the new architecture. After investigation, we decided to integrate nodemail, react-email and @nestjs/schedule as our first version to complete this feature.

This pull request includes:

Related Issue

https://github.com/lil-lab/recnet/issues/171

Notes

Currently, the cron schedule was set to 59 59 19 * * 6, which means it will run at 19:59:59 every Saturday. The reason why I set this value is that I want to test the timezone behavior on the AWS environment this coming Saturday. In our system, we used GMT+0 timezone to cutoff at 23:59:59 every Tuesday. However, when I was testing on my local machine, the cron schedule followed the EST time instead of GMT+0 time. I would like to confirm if the AWS machine behaves the same way. If so, the expected schedule should be set to `59 59 19 * * 2.

TODO

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **rec-net** | ⬜️ Ignored ([Inspect](https://vercel.com/recnet-542617e7/rec-net/6jxcewi4psTbwc44XBa34KktcGw2)) | [Visit Preview](https://rec-net-git-feat-email-recnet-542617e7.vercel.app) | | Apr 20, 2024 7:29pm | | **recnet-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/recnet-542617e7/recnet-docs/5p7WyDK2zPsXaLE5KHfkTNipjG9c)) | [Visit Preview](https://recnet-docs-git-feat-email-recnet-542617e7.vercel.app) | | Apr 20, 2024 7:29pm |