https://prefect.io logo
n

nuno

07/21/2023, 8:51 AM
Morning, two questions: • refresh_cache does not reset cache_expiration, just updates the value in cache, how to also reset the cache_expiration? • when will workers support deployments with storage?
n

Nate

07/21/2023, 3:40 PM
hi @nuno • good question - I am not sure. i can look into this • they already do, just not the same way as with infra agents / infra blocks. workers use the
pull
step(s) defined on a deployment to get the source code from a location, for example
Copy code
# pull section allows you to provide instructions for cloning this project in remote locations
pull:
- prefect.deployments.steps.git_clone:
    repository: <https://github.com/zzstoatzz/prefect-monorepo>
    branch: main
    access_token: null
is the new way of doing what previously might have looked like
Copy code
prefect deployment build ... -sb github/prefect-monorepo
you can
pull
code from anywhere during this pull step, whether s3, github, or anywhere you can fetch with a script,
git_clone
is just a common one
n

nuno

07/25/2023, 1:25 PM
hi @Nate, thank you, some questions: • any news on the cache_expiration reset? • how to deploy a worker in kubernetes (equivalent of
prefect kubernetes manifest agent | kubectl apply ...
• how to do what you showed with the python API?
hi @Nate, any info you could share much appreciated. Thanks