FrantiĆĄek
09/11/2024, 9:06 AMMarvin
09/11/2024, 9:06 AMFrantiĆĄek
09/11/2024, 9:07 AM2.19.4
FrantiĆĄek
09/11/2024, 10:47 AMMarvin
09/11/2024, 10:47 AMprefect deploy --all
will deploy all the defined deployments, but it won't delete the deployments removed from YAML.
- Good old manual solution might involve comparing current deployments with the defined ones and manually deleting the extra ones.
- More from Prefect's guide: Prefect Deployments Guide.
2. GitHub Issues:
- Suggestion to add a clear_storage
or sync_to_storage
option to remove unmatched files from remote storage before uploading new ones. This isn't exactly your issue but indicates Prefect community needs more sync features.
- No exact match issue found, but it might be worth raising a similar feature request for syncing deployments.
Summary:
No automatic sync feature exists yet. Best workaround is manually checking and cleaning up deployments not defined in your YAML.
For more info:
- Prefect Deployments Docs: Prefect Deployments Guide
- GitHub Issue discussing similar needs: GitHub Issue about sync