From 66bb733a0b13b68d5fd6e4be459e36fb88cffa1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Wed, 23 Apr 2025 15:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/test/fail_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dags/test/fail_test.py b/dags/test/fail_test.py index 7a88b59..984b298 100644 --- a/dags/test/fail_test.py +++ b/dags/test/fail_test.py @@ -23,13 +23,14 @@ def send_dingding_alert(context): }, "at": {"isAtAll": True} } - + print(message) http_hook = HttpHook(method="POST", http_conn_id="dingding_webhook") http_hook.run( endpoint="robot/send", data=json.dumps(message), headers={"Content-Type": "application/json"} ) + print("success") def fail_task(): raise ValueError("This task is designed to fail")