Is there a way to rollback/remove an existing vers...
# flyte-support
g
Is there a way to rollback/remove an existing version of a workflow and task? I'm still setting up my CI worklfows and got a half solution that creates some new versions for some resources but not for others. Don't see a clear "delete" button in the UI and flytectl docs also don't specify clearly (only mention resources and executions)
a
Probably not exactly what you're looking for but you could pick up the "old" version in the "Launch Workflow" version in the UI effectively "rolling back" to that version. Archiving is at the workflow level so not for a particular version
g
What do you mean by pick up?
a
like, select from a drop down list of versions
g
Ah right. yes. That won't work because I'm launching workflows programatically and taking the latest version. The only way to roll back I suppose is to rollback the code and deploy a new version
Going to make a feature request for this one if it doesn't exist yet. Given there's versioning of tasks/workflows, rollbacks should be possible imo
a
yeah, with FlyteRemote you could fetch a particular version and execute it, but not sure if that what a rollback is in this context
g
I could definitely do that but then I need to keep track of versions. I am now in a situation where I have some unused versions that are cluttering up things up in UI/the DB. But imagine it has some bug and I would like to undo it by going to the previous version. Would be great to be able to delete/disable/archive the latest version in the UI (or via flytectl)
a
There seems to be a related issue already: https://github.com/flyteorg/flyte/issues/3596
g
I think this is a closer one: https://github.com/flyteorg/flyte/issues/5835
Either way, made another issue: https://github.com/flyteorg/flyte/issues/6182
As for the issue you linked, I agree with Ketan that you can easily handle the data of a workflow with some good data retention policies/out of scope of Flyte itself