[Async-sig] [python-tulip] Re: asyncio.Lock equivalent for multiple processes
gmludo at gmail.com
Tue Apr 17 09:04:37 EDT 2018
Hi Antoine & Chris,
Thanks a lot for the advisory lock, I didn't know this feature in
Indeed, it seems to fit my problem.
The small latest problem I have is that we have string names for locks,
but advisory locks accept only integers.
Nevertheless, it isn't a problem, I will do a mapping between names and
Ludovic Gasc (GMLudo)
2018-04-17 13:41 GMT+02:00 Antoine Pitrou <solipsis at pitrou.net>:
> On Tue, 17 Apr 2018 13:34:47 +0200
> Ludovic Gasc <gmludo at gmail.com> wrote:
> > Hi Nickolai,
> > Thanks for your suggestions, especially for the file system lock: We
> > have often locks, but we must be sure it's locked.
> > For 1) and 4) suggestions, in fact we have several systems to sync and
> > a PostgreSQL transaction, the request must be treated by the same worker
> > from beginning to end and the other systems aren't idempotent at all,
> > "old-school" proprietary systems, good luck to change that ;-)
> If you already have a PostgreSQL connection, can't you use a PostgreSQL
> lock? e.g. an "advisory lock" as described in
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Async-sig