Comments (7)
it looks like the issue is happending somewhere here in the send_all()
:
acquired, lock = acquire_lock()
if not acquired:
return
for some reason it now aquiring the lock
Any ideas?
from django-mailer.
The lock file is called "send_mail.lock". https://github.com/pinax/django-mailer/blob/master/mailer/engine.py#L76, in your current directory. You will need to delete this.
from django-mailer.
@spookylukey send_mail.lock
is not being created for me to delete it and i do have permissions to write to that folder
from django-mailer.
It sounds like either you are looking in the wrong directory, or you've found a bug in lockfile. https://pypi.python.org/pypi/lockfile
from django-mailer.
@spookylukey i was looking at lockfile
source code and i found something interesting:
in the aquire()
function in the os.link()
it's giving me OSError: [Errno 1] Operation not permitted
i changed it to shutil.copy2 just for testing and it worked so for some reason os.link()
its not doing what is supposed to do.
I am sure i am in the right directory because i can see the temporary unique file being generated, it just not able to os.link()
and i have no clue why (permissions should be right).
I saw some other recommended locking python apps like https://pypi.python.org/pypi/zc.lockfile for example maybe i am going to give it a try
from django-mailer.
Ok i think i finally got to the bottom of this. So i am using Vagrant 1.7.4 but there appears to be a bug with the symlink creation as reported here hashicorp/vagrant#713
If i do os.link() outside my vagrant it works so i am assuming django-mailer will work too
from django-mailer.
@spookylukey i created a PR with a detailed explanation of how i solved my problem and some code to allow an alternative locking system provided by lockfile as well.
from django-mailer.
Related Issues (20)
- Need to find matching MessageLogs by email address HOT 2
- What is the purpose of send_loop HOT 3
- Allow setting priority without using django-mailer specific functions
- Please start with the "why?" and the benefits HOT 2
- Having problem on django-mailer on using with djoser HOT 6
- Condense logging HOT 2
- send_loop busy loops when there are deferred messages HOT 1
- TypeError sequence item 1: expected str instance, NoneType found HOT 5
- Forecast for the next deploy? HOT 7
- Fix issue with BigAutoField
- More granular control of how many emails to send. HOT 1
- use unittest.mock instead of mock HOT 2
- How to access subject line from db HOT 4
- Stop retrying/deferring after n failures HOT 1
- Hello HOT 2
- lockfile dependency is deprecated
- Webmail Smtp HOT 3
- feature request: release email(s) from admin under interface under Message actions HOT 2
- Issue running runmailer_pg HOT 1
- Define your own database table for the email queue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-mailer.