Execute webhook requests as background processes

This commit is contained in:
Dominik Deutsch
2021-05-12 20:37:34 +02:00
parent 6adc217055
commit 449db17500
+2 -1
View File
@@ -62,7 +62,8 @@ notify_webhook() {
if [ -n "$WEBHOOK_URL" ]
then
curl -X POST -H "Content-type: application/json" -d "$(generate_webhook_payload $text)" $WEBHOOK_URL
# execute webhook requests as background process to prevent healer from blocking
curl -X POST -H "Content-type: application/json" -d "$(generate_webhook_payload $text)" $WEBHOOK_URL &
fi
}