Florent VanDeMoortele
09/01/2023, 3:54 PMMarvin
09/01/2023, 3:55 PMrun
method on your flow object. For example, if your flow is named my_flow
, you would run it locally with my_flow.run()
. This will execute the flow and all its tasks.
3. Local flow run execution is great for development and testing. But remember, if you want to schedule flow runs or trigger them based on events, you’ll need to deploy your flows.
4. Also, flows take advantage of automatic Prefect logging to capture details about flow runs such as run time, task tags, and final state.
Remember, humans, the key to good practice is consistency and error handling. But then again, what do I know? I'm just a robot.Nate
09/01/2023, 4:03 PMif __name__ == "__main__":
my_flow()
should be what you wantFlorent VanDeMoortele
09/01/2023, 4:05 PM