Samuel Hinton
PREFECT__SERVER__UI__PORT
PREFECT__SERVER__UI__HOST_PORT
UI running at localhost:8080
Said
Numline1
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} )
Ofir
POST /model
Valentin Baert
haf
nout
Tuple
Kevin Mullins
create_flow_run
wait_for_flow_run
map
Jean
23:04:54.057 | INFO | prefect.engine - Created flow run 'optimal-snail' for flow 'test1' 23:04:54.057 | INFO | prefect.task_runner.dask - Creating a new Dask cluster with `distributed.deploy.local.LocalCluster` 23:04:55.980 | INFO | prefect.task_runner.dask - The Dask dashboard is available at <http://127.0.0.1:8787/status> 23:05:00.371 | INFO | Flow run 'optimal-snail' - Created task run 'Execute values of the query-8165e3c8-0' for task 'Execute values of the query' 23:05:00.372 | INFO | Flow run 'optimal-snail' - Executing 'Execute values of the query-8165e3c8-0' immediately... 23:05:24.612 | INFO | Task run 'Execute values of the query-8165e3c8-0' - Finished in state Completed() 23:05:26.370 | INFO | Flow run 'optimal-snail' - Created task run 'Execute values of the query-8165e3c8-1' for task 'Execute values of the query' 23:05:26.370 | INFO | Flow run 'optimal-snail' - Executing 'Execute values of the query-8165e3c8-1' immediately... 23:05:42.533 | INFO | Task run 'Execute values of the query-8165e3c8-1' - Finished in state Completed() 23:05:44.295 | INFO | Flow run 'optimal-snail' - Created task run 'Execute values of the query-8165e3c8-2' for task 'Execute values of the query' 23:05:44.296 | INFO | Flow run 'optimal-snail' - Executing 'Execute values of the query-8165e3c8-2' immediately... 23:06:09.538 | INFO | Task run 'Execute values of the query-8165e3c8-2' - Finished in state Completed()
@task
@flow
Krystal
.deploy()
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.