Skip to content

Commit

Permalink
fix(scheduler): email scheduler id error
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou committed May 19, 2024
1 parent c1aaf4c commit 4e75c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/retk/core/account/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _send(self, recipients: List[str], subject: str, html_message: str) -> const
msg.attach(html_body)

_, code = scheduler.run_once_now(
job_id=f"send_email_{conf.RETHINK_EMAIL}_{recipients}_{subject}",
job_id=f"send_email_{conf.RETHINK_EMAIL}_{recipients}_{subject}_{html_message}",
func=scheduler.tasks.email.send,
kwargs={"recipients": recipients, "subject": msg.as_string()},
)
Expand Down

0 comments on commit 4e75c36

Please sign in to comment.