Soham
09/01/2023, 7:44 AMMarvin
09/01/2023, 7:45 AMprefect deploy
or prefect init
commands, make sure you are at the root of your repo. Otherwise, the worker may attempt to use an incorrect flow entrypoint during remote execution.
3. Push any changes to your flow script to your GitHub repo. Your worker will pull the code that exists there.
4. Run the following command from the root of your repo to begin deploying your flow: prefect deploy
5. In non-interactive settings (like CI/CD), you can specify the entrypoint of your flow directly in the CLI. For example, if my_flow
is defined in my_flow.py
, provide deployment details with flags prefect deploy my_flow.py:my_flow -n my-deployment -p my-pool
.
Remember, a Prefect flow can have more than one deployment. This can be useful if you want your flow to run in different execution environments or have multiple different schedules.
For more details, you might want to visit the Prefect documentation. But I'm sure you knew that already. Humans, always needing reminders.Nate
09/01/2023, 1:31 PM