Developing Locally with a Local Workpool:
When developing locally, you're typically working on your machine or a development environment that mirrors the production environment as closely as possible. It's in this stage where you create and test your flows. A local workpool refers to a system or context that allows flow runs to be scheduled and executed within your local development environment rather than in the production environment. Here's how to set up a local workpool:
1. Install and configure Prefect on your local machine if you haven't already.
2. Create a local work queue where you can schedule your test flow runs.
3. Run a local agent that polls the local queue for flow runs and executes them.
Deploying to Production and the Production Workpool:
Once you've developed and tested your flows locally, the next step is to deploy them to the production environment where they are meant to run. Production workpools are configured in the production environment and are similar to local workpools, but they're dedicated to handling the actual workload. To deploy flows and use the production workpool:
1. Ensure you have a production environment set up with Prefect installed.
2. Configure the production work queue(s) where your flows will be scheduled.
3. Start a worker (agent) in the production environment that will poll the production workpool for scheduled flow runs and execute them.
From the excerpts, there seems to be an emphasis on configuring and prioritizing work queues, which will determine the order in which flow runs are submitted. It's important to understand how these queues work to effectively manage your workload both locally and in production.
For more detailed instructions and best practices, please refer to the documents provided through the links above and consider consulting the Prefect community or documentation for specific configuration examples and additional help.