Thread
#prefect-community
    a

    André Petersen

    10 months ago
    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?
    Anna Geller

    Anna Geller

    10 months ago
    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

    André Petersen

    10 months ago
    Yes, worked fine, see attachment
    Anna Geller

    Anna Geller

    10 months ago
    Nice work spinning up the agent! There is still this part missing on your end:
    prefect register --project tester -p /path/to/your/flow.py
    a

    André Petersen

    10 months ago
    I will try
    Thanks, that worked, but that command was missing in that tutorial, right?
    Just want to make sure that I didnt miss anything or misunderstand
    Michael Adkins

    Michael Adkins

    10 months ago
    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

    André Petersen

    10 months ago
    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?
    Michael Adkins

    Michael Adkins

    10 months ago
    Yeah
    That’s missing from the tutorial indeed.
    a

    André Petersen

    10 months ago
    Okay, thanks a lot for the quick answers and it's probably a good idea to add that in the tutorial 🙂