File tree 3 files changed +22
-2
lines changed
docs/concepts/orchestration
jina/orchestrate/deployments
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,13 @@ This feature requires at least Python3.8 version when working on MacOS.
65
65
66
66
````
67
67
68
+ ```` {admonition} Feature not supported on Windows
69
+ :class: note
70
+
71
+ This feature is not supported when using Windows
72
+
73
+ ````
74
+
68
75
```` {admonition} DocArray 0.30
69
76
:class: note
70
77
Original file line number Diff line number Diff line change 6
6
import subprocess
7
7
import threading
8
8
import multiprocessing
9
+ import platform
10
+ import sys
9
11
import time
10
12
from argparse import Namespace
11
13
from collections import defaultdict
@@ -493,7 +495,17 @@ def __init__(
493
495
f'It is not supported to have { ProtocolType .WEBSOCKET .to_string ()} deployment for '
494
496
f'Deployments with more than one shard'
495
497
)
496
-
498
+ is_mac_os = platform .system () == 'Darwin'
499
+ is_windows_os = platform .system () == 'Windows'
500
+ is_37 = sys .version_info .major == 3 and sys .version_info .minor == 7
501
+
502
+ if self .args .stateful and (is_windows_os or (is_mac_os and is_37 )):
503
+ if is_windows_os :
504
+ raise RuntimeError (f'Stateful feature is not available on Windows' )
505
+ if is_mac_os :
506
+ raise RuntimeError (
507
+ f'Stateful feature when running on MacOS requires Python3.8 or newer version'
508
+ )
497
509
if self .args .stateful and (
498
510
ProtocolType .WEBSOCKET in self .args .protocol
499
511
or ProtocolType .HTTP in self .args .protocol
Original file line number Diff line number Diff line change @@ -171,9 +171,10 @@ def get_extra_requires(path, add_all=True):
171
171
pass
172
172
173
173
is_mac_os = platform .system () == 'Darwin'
174
+ is_windows_os = platform .system () == 'Windows'
174
175
is_37 = sys .version_info .major == 3 and sys .version_info .minor == 7
175
176
176
- if ret_code == 0 and (not is_mac_os or not is_37 ):
177
+ if ret_code == 0 and not is_windows_os and (not is_mac_os or not is_37 ):
177
178
extra_golang_kw = {
178
179
'build_golang' : {'root' : 'jraft' , 'strip' : False },
179
180
'ext_modules' : [
You can’t perform that action at this time.
0 commit comments