Thread
#prefect-community
    Dharit Sura

    Dharit Sura

    3 months ago
    Hi Prefect Team, I am using Linux System and Prefect v2. I want to confirm a few things regarding deployment. I see that when I run the following command - 'prefect deployment create XYZ.py' I noticed that it is also running the flow and task. Is this expected? I assumed that deployment create would only create the deployment or update it. This happens even though my cron schedule setting is in the future.
    Kevin Kho

    Kevin Kho

    3 months ago
    You are still calling the flow in the script. If you remove that line or comment it out, it won’t run it.
    Dharit Sura

    Dharit Sura

    3 months ago
    I see but if I remove the flow_location then the deployment wouldn't make sense? Either ways I would have to compile it inorder for the agent to pick up ? Also, regarding scheduling my cron schedule is meant to run at 6 AM EST but the UI is miss leading in terms of the time. Can you let me know what this Started After and Started Before is used for?
    Kevin Kho

    Kevin Kho

    3 months ago
    Started After and Started Before is going away because it’s so confusing. It’s about the start and end of a group of bars in the UI. It’s not intuitive so it will be removed in the next version. You don’t remove the flow location. It’s like this:
    @flow
    def abc():
        print("1"
    
    abc() # remove this line when you deploy
    Dharit Sura

    Dharit Sura

    3 months ago
    Thanks @Kevin Kho