dathey
03/05/2024, 8:59 PMMarvin
03/05/2024, 8:59 PMNate
03/05/2024, 9:28 PMcauses bugs in my flow code.what bugs are caused by deleting deployments?
dathey
03/05/2024, 9:53 PMNate
03/05/2024, 10:00 PMprefect.runtime.deployment
to only try to run the models that are in the place on disk that corresponds to that deployment
then yeah, if you needed to clean up stuff on disk associated with old deployments, you could have some script in CI that deletes paths associated with deployments you can't find in the API anymore
does that make sense?dathey
03/05/2024, 10:15 PMstorage
object for a given deployment. It would mean that every time we deploy new code we would essentially create a new S3 directory for it. Then we could just set some lifecycle rules on our S3 bucket to get rid of old code after a couple months or something.
I do still feel like in prefect.filesystems.s3
it would be nice to have an optional attribute to overwrite the directory when you instantiate an S3 Storage object, but the above solution is certainly acceptable to get things working.
https://docs.prefect.io/latest/api-ref/prefect/filesystems/#prefect.filesystems.S3
Re: DBT --> This is just my personal example. I guess I could foresee this being an issue not just with DBT, but really with any script that runs every file inside a given directory.Nate
03/05/2024, 10:55 PMdathey
03/06/2024, 3:38 PMNate
03/06/2024, 3:39 PMdathey
03/06/2024, 3:39 PMNate
03/06/2024, 3:39 PM