diff --git a/lib/galaxy/job_execution/container_monitor.py b/lib/galaxy/job_execution/container_monitor.py index dfed37daf8d0..0590ce715db9 100644 --- a/lib/galaxy/job_execution/container_monitor.py +++ b/lib/galaxy/job_execution/container_monitor.py @@ -75,7 +75,8 @@ def main(): if ports[key]["host"] == "0.0.0.0": ports[key]["host"] = host_ip if callback_url: - requests.post(callback_url, json={"container_runtime": ports}, timeout=DEFAULT_SOCKET_TIMEOUT) + r = requests.post(callback_url, json={"container_runtime": ports}, timeout=DEFAULT_SOCKET_TIMEOUT) + r.raise_for_status() else: with open("container_runtime.json", "w") as f: json.dump(ports, f)