Use oslo_utils eventletutils to warn about eventlet patching
Change-Id: I86ba0de51b5c5789efae187ebc1c46ae32ff8b8b
This commit is contained in:
parent
f734467ddc
commit
d80ee56ea6
|
@ -14,8 +14,16 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo_utils import eventletutils as _eventletutils
|
||||
|
||||
# promote helpers to this module namespace
|
||||
# Give a nice warning that if eventlet is being used these modules
|
||||
# are highly recommended to be patched (or otherwise bad things could
|
||||
# happen).
|
||||
_eventletutils.warn_eventlet_not_patched(
|
||||
expected_patched_modules=['time', 'thread'])
|
||||
|
||||
|
||||
# Promote helpers to this module namespace (for easy access).
|
||||
from taskflow.engines.helpers import flow_from_detail # noqa
|
||||
from taskflow.engines.helpers import load # noqa
|
||||
from taskflow.engines.helpers import load_from_detail # noqa
|
||||
|
|
Loading…
Reference in New Issue