Is there any way to change executors in the middle of a flow? Use-case in thread -->
Kevin Weiler
12/21/2020, 5:46 PM
Iād like to use Dask for a flow, but prior to running the flow - Iād need to launch a Dask cluster on a more general purpose compute system (Slurm)
Kevin Weiler
12/21/2020, 5:47 PM
so my thought is to have the flow FIRST launch a Dask cluster on Slurm AND THEN run flow on that cluster AND FINALLY tear the cluster down
Kevin Weiler
12/21/2020, 5:49 PM
actually - my thinking on this might be wrong ā¦
Kevin Weiler
12/21/2020, 5:50 PM
the more canonical solution would be to have a Dask Scheduler always running and able to automatically launch workers when a job comes in
k
Kyle Moon-Wright
12/21/2020, 5:57 PM
Hmm, since the executor is always set at the flow level you could also use the orchestrator pattern to separate the instantiation of your cluster from the execution - to send your flow to a cluster created in the first child flow. (just spitballing here š¤)