add feature multithreading for create trade with Dask distributed
This commit is contained in:
@@ -127,6 +127,10 @@ def default_conf():
|
||||
"NEO/BTC"
|
||||
]
|
||||
},
|
||||
"multithreading": {
|
||||
"enabled": False,
|
||||
"workers_number": 4
|
||||
},
|
||||
"telegram": {
|
||||
"enabled": True,
|
||||
"token": "token",
|
||||
|
||||
11
freqtrade/tests/test_multithreading.py
Normal file
11
freqtrade/tests/test_multithreading.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from freqtrade import (multithreading)
|
||||
|
||||
|
||||
def test_client_init():
|
||||
# Check if create a Dask Client
|
||||
default_conf = {}
|
||||
default_conf.update({
|
||||
'multithreading': {'use_multithreading': True, 'workers_number': 4}
|
||||
})
|
||||
client = multithreading.init(default_conf)
|
||||
assert (str(type(client))) == "<class 'distributed.client.Client'>"
|
||||
Reference in New Issue
Block a user