Jason Carter
07/24/2020, 5:44 PMfirst_flow.py
do I have to run python first_flow.py
in order to get it to register the change? ( flow.register()
is in my py file)
2. I'm now seeing my flow in the UI but when I try to run it via the UI (as a one off run) it goes into "scheduled to run" but late and never runs (i just mark as cancel after 3mins).
import prefect
from prefect import task, Flow
@task
def hello_task():
logger = prefect.context.get("logger")
<http://logger.info|logger.info>("Hello, Cloud!")
flow = Flow("hello-flow", tasks=[hello_task])
# flow.run()
flow.register()
https://prefect-community.slack.com/archives/CL09KU1K7/p1595532174143800Matt Allen
07/24/2020, 5:45 PMflow.register()
is what builds the updated docker image and tells the prefect agent about the new version of the flow, so yeah it's required every time the code changesnicholas
07/24/2020, 5:50 PMJason Carter
07/24/2020, 5:56 PMnicholas
07/24/2020, 5:58 PM