Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd88cec9

Browse files
committed
multiprocessing.set_start_method("spawn") earlier to make tests work on Ubuntu
1 parenta38a7ad commitd88cec9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎backend/book/settings.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/2.2/ref/settings/
1111
"""
12-
12+
importmultiprocessing
1313
importos
1414
importsys
1515
frompathlibimportPath
@@ -156,3 +156,9 @@
156156
# }
157157
# }
158158
}
159+
160+
try:
161+
multiprocessing.set_start_method("spawn")
162+
exceptRuntimeError:
163+
# noinspection PyArgumentList
164+
assertmultiprocessing.get_start_method()=="spawn"

‎backend/main/workers/master.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,6 @@ def _await_result(self):
125125

126126
app=flask.Flask(__name__)
127127

128-
try:
129-
multiprocessing.set_start_method("spawn")
130-
exceptRuntimeError:
131-
# noinspection PyArgumentList
132-
assertmultiprocessing.get_start_method()=="spawn"
133-
134128

135129
defmonitor_processes():
136130
history=deque([],MONITOR.NUM_MEASUREMENTS)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp