-
Hi - There is some interest by a couple prefect users to use coil to run flows. The benefits being:
Proposed Approaches
Matthew Rocklin
Anyone at prefect have thoughts on this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @gryBox - you can tap into a Coiled cluster quite easily using the from prefect.engine.executors import DaskExecutor
import coiled
coiled_executor = DaskExecutor(cluster_class=coiled.Cluster,
cluster_kwargs=dict(name="prefect-demo",
configuration="my-acct/demo-cluster-config"))
flow_state = flow.run(executor=coiled_executor) This is probably the most flexible approach, and if you use a name (which I like to do) it will re-use the same cluster if it already exists if you’re running a lot of flows in succession / in parallel |
Beta Was this translation helpful? Give feedback.
Hey @gryBox - you can tap into a Coiled cluster quite easily using the
coiled.Cluster
object:This is probably the most flexible approach, and if you use a name (which I like to do) it will re-use the same cluster if it already exists if you’re running a lot of flows in succession / in parallel