@Marvin If you’re on the self-hosted version of Prefect, how do you trigger flows outside of Python land?
m
Marvin
10/29/2024, 6:34 PM
To provide you with the most accurate information on how to trigger flows outside of Python in a self-hosted version of Prefect, I need to determine the Prefect version you're using. Could you please confirm whether you're using Prefect 2.x or 3.x?
j
Jimmy Le
10/29/2024, 6:35 PM
3.0
Jimmy Le
10/29/2024, 6:35 PM
@Marvin 3.0
m
Marvin
10/29/2024, 6:35 PM
For Prefect 3.0 on a self-hosted setup, you can trigger flows outside of Python using the Prefect CLI or through custom triggers.
1. Prefect CLI: You can trigger a flow run using the Prefect CLI command:
Copy code
prefect deployment run 'your-flow-name/your-deployment-name'
This command allows you to trigger a flow run from the command line, integrating with other systems that can execute shell commands.
2. Custom Triggers: Prefect 3.0 supports creating custom triggers based on events. While the documentation focuses on triggers related to flow events, the concept can be extended to integrate with other event-driven systems or even create custom integrations.
For more information, you can explore the official Prefect documentation on custom triggers.
These approaches allow you to trigger flows in a self-hosted Prefect deployment without direct Python code execution, providing flexibility for various integration needs.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.