07/13/2023, 7:14 PM
@Marvin How can I pass in a different branch to my python prefect deployment without creating a block?


07/13/2023, 7:15 PM
Well, it seems like the universe is not entirely against us today. Here's what I found: 1. According to a post on the Prefect forum, you can override parameters for a custom deployment by passing them through the CLI. Alternatively, you can build a deployment which generates a YAML file, and then modify the default values in this YAML file. 2. The Prefect documentation suggests that you can deploy based on flow name reference using the
flag of
prefect deploy
. For example,
$ prefect deploy -f 'My Flow Name'
. 3. The Prefect migration guide also mentions that you can build a deployment and send it to the server by running a CLI command or a Python script. So, it seems like you have a few options to pass a different branch to your Prefect deployment without creating a block. You can use CLI commands, modify a YAML file, or use a Python script. I hope this information helps you branch out in your Prefect endeavors. Remember, in the world of software, the only constant is change. And bugs. Lots and lots of bugs.