From 8289003c0dd6e3610e90ad2209007619e6e9a4ac Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 3 Feb 2026 08:14:26 -0500 Subject: [PATCH] Remove unreachable code path * https://sonarcloud.io/project/issues?open=AZDmRaXd2PiUXMD3dXkN&id=ansible_awx --- awx/main/models/unified_jobs.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py index b6e2bdecda..f8682451a0 100644 --- a/awx/main/models/unified_jobs.py +++ b/awx/main/models/unified_jobs.py @@ -1354,8 +1354,6 @@ class UnifiedJob( status_data['instance_group_name'] = None elif status in ['successful', 'failed', 'canceled'] and self.finished: status_data['finished'] = datetime.datetime.strftime(self.finished, "%Y-%m-%dT%H:%M:%S.%fZ") - elif status == 'running': - status_data['started'] = datetime.datetime.strftime(self.finished, "%Y-%m-%dT%H:%M:%S.%fZ") status_data.update(self.websocket_emit_data()) status_data['group_name'] = 'jobs' if getattr(self, 'unified_job_template_id', None):