openverse icon indicating copy to clipboard operation
openverse copied to clipboard

Add forceful option to `ov clean`

Open sarayourfriend opened this issue 8 months ago • 0 comments

Problem

ov clean uses docker stop since https://github.com/WordPress/openverse/pull/4525

That's fine, but sometimes you don't care if the container exits gracefully, and just want to stop it.

Description

Add a --force or --kill option to ov clean that switches to docker kill instead of docker stop. Something like:

if [ "$2" = "--kill" ]; then
  docker kill ...
else
  docker stop ...
fi

sarayourfriend avatar Jun 20 '24 23:06 sarayourfriend