Skip to content

Add a new email job table and email service to schedule sending emails#263

Merged
haiphucnguyen merged 3 commits intoflowinquiry:mainfrom
larry-ca:feature/add-email-job-implementation
Feb 25, 2026
Merged

Add a new email job table and email service to schedule sending emails#263
haiphucnguyen merged 3 commits intoflowinquiry:mainfrom
larry-ca:feature/add-email-job-implementation

Conversation

@larry-ca
Copy link
Copy Markdown
Contributor

  • Added the new email table to store the email items would be sent by schedule job
  • A new schedule job to scan email records in the table fw_email_job and send emails

I will do the follow up task to convert the existing sending email task to persist the email records to fw_email_job table, and let schedule job to send emails.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Sep 28, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Collaborator

@haiphucnguyen haiphucnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@larry-ca thank you for your PR. I left some comments, also we need to write some tests to validate the json, yaml format processing in our code.

- Add EMAIL_JOB_BATCH_LIMIT constant to unify batch size and simplify configuration.
- Extract template context preparation into its own method for better readability and reuse.
- Extend MailTemplateRendererService with documentation detailing the required YAML‑markdown template structure.
- Update SendRelayEmailJob to use the new constant and helper, improving maintainability.
@larry-ca
Copy link
Copy Markdown
Contributor Author

Hi @haiphucnguyen , could you review this PR again. Thanks

Copy link
Copy Markdown
Collaborator

@haiphucnguyen haiphucnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @larry-ca for your contribution

@haiphucnguyen haiphucnguyen merged commit 2505ce8 into flowinquiry:main Feb 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants