Skip to content

Commit

Permalink
starter
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarunov committed Jun 28, 2018
1 parent 70ad519 commit 7ee342e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/sh

# Запуск шедулера
dask-scheduler


# Запуск воркеров
# Запуск воркеров
PYTHONPATH=. dask-worker 127.0.0.1:8786 &
PYTHONPATH=. dask-worker 127.0.0.1:8786 &
PYTHONPATH=. dask-worker 127.0.0.1:8786 &
2 changes: 1 addition & 1 deletion starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def start_futures():

data = client.map(load_data, isins)
params_a = client.map(get_param, data, ['param_a'] * len(isins))
params_b = client.map(get_param, data, ['param_a'] * len(isins))
params_b = client.map(get_param, data, ['param_b'] * len(isins))

result_a = client.map(task_a, isins, params_a, params_b)

Expand Down

0 comments on commit 7ee342e

Please sign in to comment.