Ryan Prasad
04/10/2024, 11:53 PMKevin Grismore
04/10/2024, 11:54 PMKevin Grismore
04/10/2024, 11:54 PMRyan Prasad
04/10/2024, 11:54 PMMarvin
04/10/2024, 11:56 PMrun_deployment
function provided by Prefect. Below is a small snippet demonstrating its use:
python
from prefect.deployments import run_deployment
def main():
run_deployment(name="my_flow_name/my_deployment_name")
For more information on running a deployed flow from within Python code, refer to the Prefect Deployments documentation.
Additionally, if you are looking to interact with automations or to use webhooks for triggering deployments, you can review the guides on Automations and Concepts of Automations.
The code example linked is not directly related to triggering deployment runs, but if you want to explore task submission and concurrency in Prefect, you can find the code at this GitHub link.Kevin Grismore
04/10/2024, 11:56 PMKevin Grismore
04/10/2024, 11:56 PMKevin Grismore
04/10/2024, 11:56 PMRyan Prasad
04/10/2024, 11:57 PMKevin Grismore
04/10/2024, 11:57 PMRyan Prasad
04/11/2024, 3:09 PM