dogpile.cache icon indicating copy to clipboard operation
dogpile.cache copied to clipboard

Should be able to check if region is already configured

Open sqlalchemy-bot opened this issue 11 years ago • 1 comments

Migrated issue, originally created by s (sontek)

Right now if the code that calls configure on a region gets hit by multiple threads, the 2nd one will fail. We should be able to say something like:

if not region.is_configured(): .. configure!

sqlalchemy-bot avatar May 08 '13 02:05 sqlalchemy-bot

Michael Bayer (zzzeek) wrote:

OK, well that also means the whole thing has to be synchronized. I guess as mappers in SQLA have this all synchronized that serves as precedent here.

sqlalchemy-bot avatar May 08 '13 02:05 sqlalchemy-bot