That's my plan but will have to postpone until later today. Thx. M.
2014-02-06 13:39 GMT+00:00 Roberto De Ioris <[email protected]>: > > > Hello Rob, thanks for your help. But actually it did not resolve the > > issue. > > > > Any other ideas? Might be I have to check with the sqlalchemy mailing > > list. > > > > Michael. > > > Hard to say, the fact you do not have the problem in multithreading mode > suggests some form of caching of the inserted/viewed data. > > Can you build an ultra-slim application (just write and view) so you can > post it and we can check what is wrong ? > > > > > > > 2014-02-06 13:00 GMT+00:00 Roberto De Ioris <[email protected]>: > > > >> > >> > Hello people, > >> > > >> > I observe a strange situation with uwsgi + nginx + flask + sqlalchemy. > >> In > >> > production mode I am running uwsgi with 4 processes and 2 threads. > >> This > >> > application obviously uses simple forms. Now if I make a change to > >> some > >> > form content, committing this into the database everything is fine. > >> But > >> > triggering a reload in the browser brings up the old value. Reloading > >> > again > >> > and again brings up the new value. This goes round in circles and it > >> very > >> > much seems to be related to the processes/threads. If I set uwsgi to 1 > >> > process, this behaviour does not occur. > >> > > >> > BTW: I am using sqlalchemy's scoped sessions. > >> > > >> > What am I missing here? > >> > > >> > Any help very much appreciated. > >> > Michael > >> > _______________________________________________ > >> > uWSGI mailing list > >> > [email protected] > >> > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > >> > > >> > >> not sure if it could help (i would need to check your code), but > >> sqlalchemy generally requires --lazy-apps > >> > >> can you try if adding it to uWSGI solves your issue ? > >> > >> -- > >> Roberto De Ioris > >> http://unbit.it > >> _______________________________________________ > >> uWSGI mailing list > >> [email protected] > >> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > >> > > > > > > > > -- > > Michael Rau > > Sarasatestraße 61 > > D-81247 München > > Telefon: +49(0) 89-3584-7665 > > Mobil: +49(0) 176-6162-8248 > > Fax: +49 (0) 3212-116719 > > skype: michael_rau_de > > mailto: [email protected] > > _______________________________________________ > > uWSGI mailing list > > [email protected] > > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > > > > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > -- Michael Rau Sarasatestraße 61 D-81247 München Telefon: +49(0) 89-3584-7665 Mobil: +49(0) 176-6162-8248 Fax: +49 (0) 3212-116719 skype: michael_rau_de mailto: [email protected]
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
