File tree 4 files changed +13
-11
lines changed
4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 3
3
name : Micro Benchmarks
4
4
5
5
on :
6
- pull_request :
7
- type : [opened, reopened, edited]
8
- branches :
9
- # Only for PRs targeting those branches
10
- - master
11
- - v[0-9]+.[0-9]+
12
6
schedule :
13
7
- cron : ' 30 3 * * *'
14
8
43
37
nosetests_node_total : 1
44
38
nosetests_node_index : 0
45
39
python-version : ' 3.6'
40
+ - name : ' Microbenchmarks'
41
+ task : ' micro-benchmarks'
42
+ nosetests_node_total : 1
43
+ nosetests_node_index : 0
44
+ python-version : ' 3.8'
46
45
services :
47
46
mongo :
48
47
image : mongo:4.4
Original file line number Diff line number Diff line change @@ -234,6 +234,10 @@ Changed
234
234
235
235
Contributed by @chadpatt .
236
236
237
+ * Monkey patch on st2stream earlier in flow #5240
238
+
239
+ Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions)
240
+
237
241
Improvements
238
242
~~~~~~~~~~~~
239
243
Original file line number Diff line number Diff line change 34
34
from st2common .middleware .instrumentation import RequestInstrumentationMiddleware
35
35
from st2common .middleware .instrumentation import ResponseInstrumentationMiddleware
36
36
from st2common .router import Router
37
- from st2common .util .monkey_patch import monkey_patch
38
37
from st2common .constants .system import VERSION_STRING
39
38
from st2common .service_setup import setup as common_setup
40
39
from st2common .util import spec_loader
@@ -47,10 +46,6 @@ def setup_app(config={}):
47
46
48
47
is_gunicorn = config .get ("is_gunicorn" , False )
49
48
if is_gunicorn :
50
- # Note: We need to perform monkey patching in the worker. If we do it in
51
- # the master process (gunicorn_config.py), it breaks tons of things
52
- # including shutdown
53
- monkey_patch ()
54
49
55
50
st2stream_config .register_opts (ignore_errors = True )
56
51
capabilities = {
Original file line number Diff line number Diff line change 13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
16
+ from st2common .util .monkey_patch import monkey_patch
17
+
18
+ monkey_patch ()
19
+
16
20
import os
17
21
18
22
from st2stream import app
You can’t perform that action at this time.
0 commit comments