python - Django Database "Out of sync" -


i'm using django 1.5 (with nginx , uwsgi) number of workers, running problem getting workers have access up-to-date information.

namely, when create object using django admin, adds worker, other workers may not gain access time (longest i've noted whole day). so, create object appear in admin (and on site). if swap out single worker, starts working expected.

i suspect related database transactions, believe each worker have own database cursor. tried added 'atomic_requests': true database configuration , 'django.middleware.transaction.transactionmiddleware', middleware_classes, issue still occurs.

can shed light on what's going on, , how can rectify issue?

edit: workers uwsgi workers, starting using exec uwsgi --master --die-on-term --emperor /etc/uwsgi/vassals, /etc/uwsgi/vassals/mysite.ini available following (trimmed) content

[uwsgi] workers=1 ; [...] 


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -