Simon Thompson
06/22/2023, 9:25 AMSimon Thompson
06/22/2023, 9:26 AM# Welcome to your prefect.yaml file! You can you this file for storing and managing
# configuration for deploying your flows. We recommend committing this file to source
# control along with your flow code.
# Generic metadata about this project
name: prefect_training
prefect-version: 2.10.15
# build section allows you to manage and build docker images
build:
- prefect_docker.deployments.steps.build_docker_image:
id: build_image
requires: prefect-docker>=0.3.0
image_name: get-the-weather
tag: latest
dockerfile: auto
push: false
# push section allows you to manage if and how this project is uploaded to remote locations
push:
# pull section allows you to provide instructions for cloning this project in remote locations
pull:
- prefect.deployments.steps.set_working_directory:
directory: /opt/prefect/prefect_training
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name:
version:
tags: []
description:
schedule: {}
flow_name:
entrypoint:
parameters: {}
work_pool:
name:
work_queue_name:
job_variables:
image: '{{ build_image.image }}'
- name: weather-docker
version:
tags: []
description:
entrypoint: 101.py:run_pipe
parameters: {}
work_pool:
name: docker-work
work_queue_name:
job_variables: {}
schedule:
Adam Stone
06/22/2023, 9:35 AM/opt/prefect/{mydirectory}
ale
06/22/2023, 9:39 AMJovan Sakovic
06/22/2023, 9:39 AM/opt/prefect
?Adam Stone
06/22/2023, 9:40 AMAdam Stone
06/22/2023, 9:56 AMAdam Stone
06/22/2023, 9:57 AMprefect worker start -t docker -p docker-pool
3. (typing)Adam Stone
06/22/2023, 9:58 AMpush: false
in the YAMLAdam Stone
06/22/2023, 10:00 AM- name:
version:
tags: []
description:
schedule: {}
flow_name:
entrypoint:
parameters: {}
work_pool:
name:
work_queue_name:
job_variables:
image: '{{ build_image.image }}'
Adam Stone
06/22/2023, 10:00 AMAdam Stone
06/22/2023, 10:00 AM- name: adamdeployment
version:
tags: []
description:
entrypoint: flows2.py:pipe2
parameters: {}
work_pool:
name: docker-pool
work_queue_name:
job_variables: {}
schedule:
Adam Stone
06/22/2023, 10:01 AMjob_variables
from the first deployment (the empty unnamed one) to the second deployment, then delete the first deploymentAdam Stone
06/22/2023, 10:01 AMdeployments:
- name: adamdeployment
version:
tags: []
description:
entrypoint: flows2.py:pipe2
parameters: {}
work_pool:
name: docker-pool
work_queue_name:
job_variables:
image: '{{ build_image.image }}'
schedule:
Adam Stone
06/22/2023, 10:02 AMprefect deploy -n {deploymentname}
to re-register it on cloudAdam Stone
06/22/2023, 10:03 AMAdam Stone
06/22/2023, 10:03 AMale
06/22/2023, 10:05 AMNiall O'Riordan
06/22/2023, 10:28 AMSimon Thompson
06/22/2023, 12:23 PM