Skip to content

Queue mail 累積發送 #199

Open
Open
@toomore

Description

mail_member_add 觸發寄送的項目後,必須 要完成寄送才會標記完成,但會因為 RabbitMQ 累積待發送項目,而造成每次檢查是否要寄送項目而重複放入 queue 序列。

def mail_member_add(sender: Any) -> None:

或許放寬嚴謹完成條件,將完成標記移入到 mail_member_add 中。

team_member_change_db.find_one_and_update(
{'_id': ObjectId(kwargs['rid'])}, {'$set': {'done.mail': True}})

mail_member_deny, mail_member_waiting 亦有同樣問題。

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions