Chris Leber
file_list = ['./file_1.txt', './file_2.txt', './file_3.txt', './file_4.txt', './file_5.txt', './file_6.txt', './file_7.txt', ..., './file_100.txt'] @task def test_task(input_file): result = some_function(input_file) return result def ecs_cluster(n_workers=4): """Start a ecs cluster using the same image as the flow run""" return ECSCluster( n_workers=n_workers, image=prefect.context.image, region_name="us-east-1" ) with Flow( "test flow", storage=S3(bucket="storage"), run_config=ECSRun(task_definition=task_definition), ) as flow: test_task.map(input_file=file_list) flow.executor = DaskExecutor( cluster_class=ecs_cluster, cluster_kwargs={"n_workers": 10} )
cnsmyth
RuntimeWarning: coroutine 'run_task_async' was never awaited return fn(*args, **kwargs) RuntimeWarning: Enable tracemalloc to get the object allocation traceback
cauchymike
Dominic Pham
Thomas van Riet
haf
nout
Tuple
Miguel Moncada
def deploy_hello_flow(): hello_flow.deploy( name="hello_flow_k8s_deployment", work_pool_name="default-worker-pool", # k8s work pool image="europe-docker.pkg.dev/cambium-earth/prefect-runners-prod/default:latest", tags=["prod"], schedule=CronSchedule(cron="0 12 1 * *", timezone="UTC"), )
Moe
prefect cloud login
prefect cloud login -k <key> -w <handle>/<workspace>
"Unable to authenticate with Prefect Cloud. Your key is not in our expected format."
Emma Rizzi
prefect deployment build
prefect deploy
Luke Orland
./prefect.yaml
Would you like to build a custom Docker image for this deployment? [y/n] (n):
Would you like to save configuration for this deployment for faster deployments in the future? [y/n]:
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.