Created
December 16, 2020 18:05
-
-
Save jcrist/2d77ff27017f8591d1f478eca738bb65 to your computer and use it in GitHub Desktop.
Prefect Example using DaskExecutor with dask-cloudprovider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from prefect import Flow | |
from prefect.executors import DaskExecutor | |
with Flow("daskcloudprovider-example") as flow: | |
# Add tasks to flow here... | |
# Execute this flow on a Dask cluster deployed on AWS Fargate | |
flow.executor = DaskExecutor( | |
cluster_class="dask_cloudprovider.aws.FargateCluster", | |
cluster_kwargs={"image": "prefecthq/prefect", "n_workers": 5} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment