Cody Webb
08/08/2023, 8:51 PMclass SomeClass:
def init(self):
…
@flow(task_runner=DaskTaskRunner())
def __runmodel(self, *args):
code to run model on dask
@flow
def gen_args_run_model(self):
args_list = #code to gen arg_list
#arg_list is a list of tuples which have args
try:
results=[self._runmodel(*args) for args in args_list]
except:
….
I want to create a deployment for gen_args_run_model that I can then run and it will kick off the run_model sub flow on dask with each iteration of args in arg list, how would I go about this?Cody Webb
08/08/2023, 11:40 PMCody Webb
08/09/2023, 2:36 AMasyncio.gather(*results)
And make the self._run_model function async?Cody Webb
08/09/2023, 2:36 AMCody Webb
08/09/2023, 8:32 PMCody Webb
08/10/2023, 4:22 PMCody Webb
08/10/2023, 4:22 PM