mirror of
https://github.com/willfarrell/docker-autoheal.git
synced 2024-12-06 19:16:20 +01:00
Execute webhook requests as background processes
This commit is contained in:
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user