princeton-ddss / blackfish

Machine learning as a service (MLaaS) for busy researchers
https://princeton-ddss.github.io/blackfish/
0 stars 0 forks source link

Add `rm --all` and `rm --filter` #31

Open fjying opened 2 months ago

fjying commented 2 months ago

Add blackfish rm . to remove all the past services once This reduces the time to load all the past not used services when doing blackfish ls

cswaney commented 1 month ago

I think the thing to do here is allow blackfish rm to accept filters with pattern matching as well as a convenience option --all.

The feature should allow actions such as:

blackfish rm --filter status=FAILED,image=text-*

which would delete all text-generation-inference services whose status is FAILED. The command to delete all services would be

blackfish rm --all
fjying commented 1 month ago

The --all option to remove all the services is great.

Alternatively, it could also accept

blackfish rm --status=FAILED --image=text-*