labctl icon indicating copy to clipboard operation
labctl copied to clipboard

[WIP] Enable to stop one or more labs

Open jedrekdomanski opened this issue 1 year ago • 2 comments

Make

labctl playground stop playID

to accept a list of playground IDs. Pretty much make it work like docker stop

docker stop cont1 cont2 cont3

so it looks like

labctl playground stop playID1 playID2 playID3

jedrekdomanski avatar Aug 04 '24 13:08 jedrekdomanski

@iximiuz The code does what I expect it to do (it iterates over the list of passed in playground IDs to stop command), however the spinner somewhat stands on my way now and I can't get my head around how it works. It will just process the first playground ID and "eat" all other playgrounds so they won't get stopped. Can you take a look at it? 👁️

jedrekdomanski avatar Aug 04 '24 13:08 jedrekdomanski

Or it may as well be related to GET'ing the playground ID which checks the status before it continues processing. I noticed that GET'ing a list of playgrounds in CLI is somewhat "laggy". What I mean by that is that when I refresh the dashboard page I see the playgrounds are gone however when I GET the list of playgrounds in CLI it still shows some active playgrounds. Not sure which is the source of truth here :)

jedrekdomanski avatar Aug 04 '24 13:08 jedrekdomanski