From b0721c658f26fb5d4097cf1688583dc3a4ea05a0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:58:20 +0000 Subject: [PATCH 1/2] Initial plan From 60819ffdbf8572839e1d203b9270a87c3de15f5e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Dec 2025 13:02:35 +0000 Subject: [PATCH 2/2] Only send rig maintenance alert when there are issues (total > 0) Co-authored-by: tabedzki <35670232+tabedzki@users.noreply.github.com> --- .../alert_system/rig_maintenance/check_rig_maintenance.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/u19_pipeline/alert_system/rig_maintenance/check_rig_maintenance.py b/u19_pipeline/alert_system/rig_maintenance/check_rig_maintenance.py index 2846ddbd..0e34ae41 100755 --- a/u19_pipeline/alert_system/rig_maintenance/check_rig_maintenance.py +++ b/u19_pipeline/alert_system/rig_maintenance/check_rig_maintenance.py @@ -488,9 +488,10 @@ def main(): # headers={"Content-Type": "application/json"}, # ) - # Send Slack notification with summary only - current_date = datetime.now().date() - send_slack_notification(overdue_items, current_date) + # Send Slack notification with summary only if there are issues + if overdue_items: + current_date = datetime.now().date() + send_slack_notification(overdue_items, current_date) # Exit with error code if there are overdue items if overdue_items: