Broken `.with_transaction_options` and `.with_retry_options` on `AsyncIOPool`
See original GitHub issueI’m on the latest edgedb-python (0.14.0) with EdgeDB 1-beta2 running in Docker
I’ve tried to call with_retry_options
method on AsyncIOPool
instance, but it fails with:
...
result = self._shallow_clone()
> result._options = self._options.with_retry_options(options)
E AttributeError: 'NoneType' object has no attribute '_options'
I’ve also noticed that AsyncIOPool doesn’t implement _shallow_clone
required by _OptionsMixin
.
Also, is there is any specific reason why _OptionsMixin
doesn’t inherit from abc.ABC
but still uses abstractmethod
decorator?
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
gistart/asyncio-pool - GitHub
Creates pool of size concurrent tasks. Supports async context manager interface. spawn(coro, cb=None, ctx=None). Waits for pool space, then ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
cc @tailhook
Not yet; we’ll take a look soon.
I’m sorry, I oversimplified my example a little bit. In real life I’m using
FOR...IN
to bulk update and it seems like this causes my issues with concurrent updates.I prepared a gist with my example: https://gist.github.com/unmade/135cb59092202750b953b3285cc6851d
Yes, the example from gist works with no problem when isolation level is
REPEATABLE READ
, however it fails withSERIALIZABLE