eddy davies
08/02/2022, 10:54 AMfrom prefect import flow
@flow(name="My Example Flow")
"""An example flow for a tutorial."""
def my_flow():
# run tasks and subflows
Bianca Hoch
08/02/2022, 2:23 PMfrom prefect import flow
@flow(name="My Example Flow")
"""An example flow for a tutorial."""
def my_flow():
print("Hi, this is my flow!")
my_flow()
eddy davies
08/02/2022, 2:48 PMKhuyen Tran
08/02/2022, 5:05 PMfrom prefect import flow
@flow(name="My Example Flow")
def my_flow():
"""An example flow for a tutorial."""
# run tasks and subflows
assert my_flow.description == "An example flow for a tutorial."
We will fix this as soon as possibleeddy davies
08/03/2022, 10:52 AMKhuyen Tran
08/03/2022, 3:06 PMeddy davies
08/04/2022, 7:58 AMKhuyen Tran
08/04/2022, 3:12 PMdeployment.yaml
files or through the UI
# deployment.yaml
name: hello
description: your description here
tags:
- test
schedule: null
parameters: {}
infrastructure:
type: process
env: {}
labels: {}
name: null
command:
- python
- -m
- prefect.engine
stream_output: true
eddy davies
08/05/2022, 7:54 AMdescription
parameter or docstring) shown?Chris L.
08/09/2022, 3:34 AMflow()
and the supposed auto docs from flow docstring functionality.Khuyen Tran
08/09/2022, 2:32 PMdescription
parameter from a flow is not visible. We recommend that you add the description to a deployment instead of a flow.Bianca Hoch
08/09/2022, 2:36 PMKhuyen Tran
08/09/2022, 2:37 PMBianca Hoch
08/09/2022, 2:38 PM