Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue mail 累積發送 #199

Open
toomore opened this issue Feb 29, 2024 · 1 comment
Open

Queue mail 累積發送 #199

toomore opened this issue Feb 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@toomore
Copy link
Member

toomore commented Feb 29, 2024

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 亦有同樣問題。

@toomore toomore added the bug Something isn't working label Feb 29, 2024
@toomore toomore self-assigned this Feb 29, 2024
@toomore
Copy link
Member Author

toomore commented Feb 29, 2024

[2024-02-27 16:55:00,041: CRITICAL/MainProcess] Unrecoverable error: PreconditionFailed(406, 'PRECONDITION_FAILED - delivery acknowledgement on channel 1 timed out. Timeout value used: 1800000 ms. This timeout value can be configured, see consumers doc guide to learn more', (0, 0), '')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant