Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


es_required will throw an exception the first time it's called on a secondary thread #22

erikrose opened this Issue · 1 comment

2 participants

Owner initializes the attr on _local only for the thread importing the module. Any other thread won't see that attr, and es_required() will throw an AttributeError the first time it's used on that thread.


In overhauling for pyelasticsearch, I nixed all the thread-local stuff. As a side note, while _local.disabled gets populated, it doesn't appear to ever get queried. So ... I'm not really sure what that was for anyhow.

Closing this out.

@willkg willkg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.