We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6453c46 commit 45a35a3Copy full SHA for 45a35a3
src/ingest.py
@@ -89,8 +89,12 @@ def on_success(datasets):
89
if webhook_uri:
90
for exp_id in webhook_filenames:
91
info_dict = {"exp_id": exp_id, "filenames": webhook_filenames[exp_id]}
92
- resp = requests.post(webhook_uri, json=info_dict, timeout=0.5)
93
- logger.info("Webhook response %s: %s", info_dict, resp)
+ try:
+ resp = requests.post(webhook_uri, json=info_dict, timeout=0.5)
94
+ logger.info("Webhook response %s: %s", info_dict, resp)
95
+ except Exception:
96
+ # Ignore webhook exceptions
97
+ logger.exception("Webhook exception for %s", info_dict)
98
99
100
def on_ingest_failure(dataset, exc):
0 commit comments