Skip to content

Commit

Permalink
Perform eventlet monkeypatching in the sensor wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Jan 25, 2015
1 parent f297fea commit c10b639
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions st2reactor/st2reactor/container/sensor_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
# limitations under the License.

import os
import sys
import json
import atexit
import argparse

import eventlet
from oslo.config import cfg
from st2client.client import Client

Expand All @@ -38,6 +40,13 @@
'SensorWrapper'
]

eventlet.monkey_patch(
os=True,
select=True,
socket=True,
thread=False if '--use-debugger' in sys.argv else True,
time=True)


class SensorService(object):
"""
Expand Down

0 comments on commit c10b639

Please sign in to comment.