Hi there! I am new to prefect and looking whether ...
# ask-community
a
Hi there! I am new to prefect and looking whether it is the right tool for our needs in our Data Engineering team. Therefore, I wanted to first run the simple tutorial described here: https://cloud.prefect.io/tutorial/Universal-Deploy#user-content-universal-deploy I am working on Windows on WSL1. Everything worked fine (creating python environment with prefect, running the test flow locally, authentication with the key, creating the project), no error message, but I can not see the flow I defined in the UI within prefect cloud. What could be the reason for it?
a
To see the flow in the Prefect Cloud UI, you need to authenticate your terminal with the API key and register your flow to the project you’ve just created. Have you done this part already?
a
Yes, worked fine, see attachment
a
Nice work spinning up the agent! There is still this part missing on your end:
Copy code
prefect register --project tester -p /path/to/your/flow.py
a
I will try
👍 1
Thanks, that worked, but that command was missing in that tutorial, right?
Just want to make sure that I didnt miss anything or misunderstand
z
The tutorial uses
flow.register()
in Python instead of the CLI.
(They are roughly equivalent, although the CLI is generally recommended as it has some conveniences)
a
Okay, but it was not registered because the flow was never run?
(after the small chance in the script)
flow.run() -> flow.register(project_name="tester")
Was I supposed to run the script again after this change?
z
Yeah
That’s missing from the tutorial indeed.
a
Okay, thanks a lot for the quick answers and it's probably a good idea to add that in the tutorial 🙂