Merge pull request 'fix rabbit queue initialization on slow server' (#5) from fix/allow-for-failed-rabbit-queue-initialization into main

This commit is contained in:
2024-07-10 20:55:52 +00:00
4 changed files with 1 additions and 1 deletions

View File

@@ -191,7 +191,7 @@ spec:
RABBITPASS=$(oc -n goghvideo-test-${RANDOMID} get secret/rabbitmq-default-user -o template='{{ "{{" }} .data.password | base64decode {{ "}}" }}')
oc -n goghvideo-test-${RANDOMID} create secret generic amqp --from-literal=url=amqp://${RABBITUSER}:${RABBITPASS}@${RABBITHOST}/
curl --retry 6 --retry-connrefused --retry-delay 5 -O http://${RABBITHOST}:15672/cli/rabbitmqadmin
curl --retry 12 --retry-connrefused --retry-delay 10 -O http://${RABBITHOST}:15672/cli/rabbitmqadmin
chmod +x rabbitmqadmin
x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare exchange name=conversion type=topic 2>/dev/null ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done