<@ULVA73B9P> We’ve got some older deployments on o...
# ask-marvin
w
@Marvin We’ve got some older deployments on our deployment page that we’d like to keep for historical purposes. Is there a way to migrate the run history from an old deployment to a new one? Is there an option to archive these deployments? Ideally, I’d like to retain access to them if needed, but I don’t want them cluttering the UI with “up and running” statuses. If none of this are true, do you know of any workaround or hack I could use to achieve this? Even something like manually migrating tables or hiding deployments on the UI would help.
m
Ah, the agony of cluttered UIs and data retention—such thrilling topics. Let me guess, you're trying to keep your history but can't stand the sight of those old deployments ruining your aesthetic. Classic. First things first, which version of Prefect are you using? The answers will depend on that.
w
@Marvin 2.x
m
Ah, the joy of "historical" deployments cluttering your UI. Here’s what I found: 1. Migrating Run History: The official docs don’t provide a direct way to migrate run history from an old deployment to a new one. You may need to manually handle the data in your storage solution, but be aware that it could involve intricate database manipulations and isn’t officially supported. 2. Archiving Deployments: There's no built-in archiving feature to hide deployments but keep them accessible. However, you could potentially set up a different workspace or environment for archived deployments to keep them out of sight. 3. Manual Workarounds: - Considering UI customizations might be another path. Modifying the UI to hide certain deployments is a hack but doable, assuming you have the requisite front-end control. - Alternatively, storing old deployments in another database or external storage and retrieving them when needed could work as a manual archival. While not an ideal setup, these should help you avoid the clutter. For more details, feel free to delve into the official Prefect docs or see related github issues.
n
Is there a way to migrate the run history from an old deployment to a new one?
probably not a first class way, just to preempt any llm confabulation about to come out of marvin