Join Slack
Powered by
Folks, is it possible to specify the number of thr...
# ask-community
j
Jean Da Rolt
08/27/2021, 5:03 PM
Folks, is it possible to specify the number of threads for a specific task when running LocalDaskExecutor?
k
Kevin Kho
08/27/2021, 5:04 PM
Hey
@Jean Da Rolt
, task-level resource allocation is not something available, but definitely in discussion for the future
n
nicholas
08/27/2021, 5:04 PM
Hi
@Jean Da Rolt
- no, you can only specify the number of threads at the flow level
j
Jean Da Rolt
08/27/2021, 5:07 PM
thanks for the reply. Do you have any example showing how to set the global number of threads for a localdaskexecutor?
k
Kevin Kho
08/27/2021, 5:12 PM
At the bottom of
this
n
nicholas
08/27/2021, 5:12 PM
Sure, you should be able to pass the
num_workers
kwarg to the executor constructor
nicholas
08/27/2021, 5:12 PM
@Kevin Kho
is always faster than me 😆
j
Jean Da Rolt
08/27/2021, 5:13 PM
thanks! you guys are in sync
😆 2
4
Views
Open in Slack
Previous
Next