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
t
tall-lock-23197
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?
h
helpful-kilobyte-23008
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.
t
tall-lock-23197
02/07/2023, 1:29 PM
Um, not very sure about that. cc @freezing-airport-6809
tall-lock-23197
02/28/2023, 8:58 AM
Apologies for the delayed ping. What namespaces are you referring to? @helpful-kilobyte-23008
You can delete them manually if there are many. But please be careful.
h
helpful-kilobyte-23008
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.
helpful-kilobyte-23008
02/28/2023, 9:29 AM
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