What happens when agent picks up a deployed flow run from a work queue?

  1. It loads the deployment’s infrastructure block; if no block is associated with this deployment, the agent will use a preconfigured default configuration that can be configured on a per-agent basis
  2. It executes the command python -m prefect.engine $FLOW_RUN_ID within this infrastructure
  3. It then loads the deployment’s storage block, which has the ability to download the flow’s definition along with any supporting files into a temporary directory from which execution proceeds