Blake
05/07/2024, 12:37 PMpoetry? Something like poetry run python flows/my_flow.pyMarvin
05/07/2024, 12:37 PMpoetry to initiate flows in a deployment is not directly mentioned in the documents.
The documentation suggests that you have control over the actions (build, push, and pull) within your prefect.yaml file, which allows you to define how your deployment is built and executed in various environments. Deployment actions documentation
Additionally, the block-based deployment documentation indicates that you can provide custom values for any editable deployment fields, which could include modifying the command used to run the flow. Block-based deployments documentation
For a step-by-step guide, consider visiting the guide on deploying with GitHub Storage which provides examples of custom flow deployment setup.
Unfortunately, the direct substitution of the run command with poetry is not explicitly covered in the excerpts provided.
If you require a more advanced configuration to use poetry, you might want to consider constructing a custom step within your deployment actions that installs and uses poetry to run your flow. This would involve specifying custom steps in your prefect.yaml file that include poetry installation and execution commands as part of the deployment lifecycle.