I want to use databricks workers to run a function in parallel on the worker nodes
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2021 03:27 PM
I have a function making api calls. I want to run this function in parallel so I can use the workers in databricks clusters to run it in parallel. I have tried
with ThreadPoolExecutor() as executor:
results = executor.map(getspeeddata, alist)
to run my function but this does not make use of the workers and runs everything on the driver. How do I make my function run in parallel?
Labels:
- Labels:
-
Api Calls
-
Worker Nodes