When using a github storage source for a scheduled...
# ask-community
j
When using a github storage source for a scheduled deployment, does the worker pull the latest code on each run (my testing suggests it doesn't)? If not, how would I go about triggering a pull?
Copy code
After creating a deployment, you may need to change your flow code. If baking your flow code into a Docker image, you will need to rebuild your image. If storing your flow code in a git-based version control platform or a cloud-based storage location, often you can update your flow code without rebuilding your deployment.

The exception is when something the server needs to know about has changed, such as the flow entrypoint parameters.

Rerun the Python script with deploy or run prefect deploy from the CLI for YAML-based deployments to update your deployment with the new flow code.
https://docs-3.prefect.io/v3/deploy/infrastructure-concepts/store-flow-code#update-flow-code How is "Rerun the python script" for each deployment different than rebuilding the deployment?