Re: [uWSGI] Will uwsgi.lock() work for threads?

2018-04-13 Thread Skip Montanaro
I do. It's giving me fits. (Probably my problem, but this looks like a
reasonable short-term workaround.)

On Fri, Apr 13, 2018 at 9:35 AM, Roberto De Ioris  wrote:
>
>> I need to manage concurrent database update activity for my workers. I
>> see that there is a lock() function in the Python API. Will it work
>> between threads in the same process as well as between different
>> worker processes?
>>
>> Thanks,
>>
>> Skip Montanaro
>> ___
>
>
> Hi, yes, but just curious: why you do not use the locking system offered
> by the database server ?
>
> --
> Roberto De Ioris
> http://unbit.com
> ___
> uWSGI mailing list
> uWSGI@lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
___
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi


Re: [uWSGI] Will uwsgi.lock() work for threads?

2018-04-13 Thread Roberto De Ioris

> I need to manage concurrent database update activity for my workers. I
> see that there is a lock() function in the Python API. Will it work
> between threads in the same process as well as between different
> worker processes?
>
> Thanks,
>
> Skip Montanaro
> ___


Hi, yes, but just curious: why you do not use the locking system offered
by the database server ?

-- 
Roberto De Ioris
http://unbit.com
___
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi