Is it possible to cleanup project instead of archiving them? As in remove from DB and remove k8s namespaces.
It looks like scheduler tries to schedule even archived projects and spits out errors
Copy code
Got error while scheduling rpc error: code = InvalidArgument desc = project [project-x] is not active
s
Samhita Alla
02/07/2023, 1:27 PM
You can do that but you should be very careful when you're deleting a project from DB.
Launch plans in archived projects get scheduled and this is a known error. Could you archive your launch plans as well for now?
a
Andrew Korzhuev
02/07/2023, 1:28 PM
Thanks, I’ll look into this.
Would it be safe to remove k8s namespaces? It’s a bit of a zoo now.
s
Samhita Alla
02/07/2023, 1:29 PM
Um, not very sure about that. cc @Ketan (kumare3)
Apologies for the delayed ping. What namespaces are you referring to? @Andrew Korzhuev
You can delete them manually if there are many. But please be careful.
a
Andrew Korzhuev
02/28/2023, 9:28 AM
Those are k8s namespaces, we deploy to k8s and whenever a new project is created Flyte creates a namespace for it, where it puts the pods of the project.
I guess there is some internal mapping towards them and we were thinking that we should clean up all the remnants of it in the database first, but the only option it seems is to archive