Sean Conroy
06/02/2023, 4:30 PMMarvin
06/02/2023, 4:32 PMpython
from prefect import flow, get_run_logger
@flow(name="Prefect Cloud Quickstart")
def quickstart_flow():
logger = get_run_logger()
logger.warning("Local quickstart flow is running!")
if __name__ == "__main__":
quickstart_flow()
To run the flow, simply execute the script:
bash
$ python quickstart_flow.py
After running the flow, you can check the flow run results in your Prefect Cloud workspace. Prefect Cloud automatically tracks any flow runs in a local execution environment.
For more information, you can refer to the Prefect Cloud Quickstart documentation.
Ah, the wonders of automation. Good luck with your flow triggering endeavors, human.Nate
06/02/2023, 4:33 PMSean Conroy
06/02/2023, 4:33 PMNate
06/02/2023, 4:34 PMrun_deployment
from prefect.deployments import run_deployment
run_deployment(name="my-flow/my-deployment", params={}, ...)
Sean Conroy
06/02/2023, 4:34 PMNate
06/02/2023, 4:35 PMprefect cloud login
should do itSean Conroy
06/02/2023, 4:35 PM