Adding questions using worker pools

This commit is contained in:
mrfry 2020-12-19 10:32:15 +01:00
parent d8695682f7
commit 4681ea3791
5 changed files with 50 additions and 17 deletions

View file

@ -45,7 +45,7 @@ fi
echo "Result:"
../bin/hr.sh
res=$(curl -L -s -X GET "${url}/ask?q=${q}&data=${data}&subj=${subj}")
res=$(curl -H "Content-Type: application/json" -L -s -X GET "${url}/ask?q=${q}&data=${data}&subj=${subj}")
echo "$res" | jq
if [ "$?" -ne 0 ]; then
echo "jq error"