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

How to access subject line from db #160

Open
AshwinNS opened this issue Dec 7, 2022 · 4 comments
Open

How to access subject line from db #160

AshwinNS opened this issue Dec 7, 2022 · 4 comments
Labels

Comments

@AshwinNS
Copy link

AshwinNS commented Dec 7, 2022

I'm having multiple instance of my app running and cron jobs are activated in both of the instance. Because of i have cron running in both instance my users are receiving multiple emails. I thought of tackling this issue by looking into the MessageLog table when_added field. How can i access the subject line from django shell or any app?

@spookylukey
Copy link
Contributor

I'm not sure how "subject line" is relevant.

Regarding the duplicate email, this should not be happening even with the setup you have described, because we have locking that should prevent duplicate processing. If you are certain this locking is not working, please could you report which database you are using?

I have tested quite extensively on Postgresql and the locking works, and it ought to work for other databases too.

@AshwinNS
Copy link
Author

Using MySQL db. I'm using Mailer for a quite a while now (~1 year) and everything was working fine till last month. I'm looking in to my code as well now.

@AshwinNS
Copy link
Author

Sorry i went south with my question. I wanted to access email subject line if in any case i'm not able to solve this double mailing issue, i can access the recent mail subjects and stop the other instance from firing the duplicate mail.

@AshwinNS
Copy link
Author

AshwinNS commented Feb 9, 2023

I found that previously i was using mailer for only sending news letters once every month. The issue started when i enabled new feature with which my users can pass notes (text formatted) to each other. For each note shared the application will sending email notification now. Anything you can think about or share would be great.
Note: I'm using django-crontab for setting up my cronjobs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants