feat: exit the Populate function when another one is started

+ add test for the extract_fetured_artists_from_title function
This commit is contained in:
geoffrey45
2023-01-24 22:40:19 +03:00
parent 2ba1b0386e
commit af4221e0c7
10 changed files with 528 additions and 385 deletions
+1 -17
View File
@@ -5,21 +5,5 @@ gpath=$(poetry run which gunicorn)
# $pytest # -q
while getopts ':s' opt; do
case $opt in
s)
echo "Starting image server"
cd "./app"
"$gpath" -b 0.0.0.0:1971 -w 1 --threads=1 "imgserver:app" &
cd ../
echo "Done ✅"
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
done
echo "Starting swing"
"$gpath" -b 0.0.0.0:1970 --threads=2 "manage:create_api()"
"$gpath" -b 0.0.0.0:1970 --threads=2 "manage:create_api()"