From 233d4559fcb41f28cfbe95b338e60c26fd050e00 Mon Sep 17 00:00:00 2001 From: blaipr Date: Sun, 14 Jun 2026 01:35:40 +0200 Subject: [PATCH] Fix canceled-status spelling so live views refresh on cancel The workflow output and inventory-source detail websocket hooks gated their full node/detail re-fetch on the status 'cancelled' (British spelling), but AWX emits 'canceled'. As a result, when a workflow (or inventory source sync) is canceled while its live view is open, the final re-fetch never fires and the view can show stale node/detail state until the page is reloaded. Use the correct 'canceled' spelling in both hooks. --- .../screens/Inventory/shared/useWsInventorySourcesDetails.js | 2 +- awx/ui/src/screens/Job/WorkflowOutput/useWsWorkflowOutput.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/src/screens/Inventory/shared/useWsInventorySourcesDetails.js b/awx/ui/src/screens/Inventory/shared/useWsInventorySourcesDetails.js index e010b8916..6dfe79a15 100644 --- a/awx/ui/src/screens/Inventory/shared/useWsInventorySourcesDetails.js +++ b/awx/ui/src/screens/Inventory/shared/useWsInventorySourcesDetails.js @@ -24,7 +24,7 @@ export default function useWsInventorySourcesDetails(initialSource) { } if ( - ['successful', 'failed', 'error', 'cancelled'].includes( + ['successful', 'failed', 'error', 'canceled'].includes( lastMessage.status ) ) { diff --git a/awx/ui/src/screens/Job/WorkflowOutput/useWsWorkflowOutput.js b/awx/ui/src/screens/Job/WorkflowOutput/useWsWorkflowOutput.js index ee8f794bb..e586c7d76 100644 --- a/awx/ui/src/screens/Job/WorkflowOutput/useWsWorkflowOutput.js +++ b/awx/ui/src/screens/Job/WorkflowOutput/useWsWorkflowOutput.js @@ -53,7 +53,7 @@ export default function useWsWorkflowOutput(workflowJobId, initialNodes) { if ( lastMessage?.unified_job_id === workflowJobId && - ['successful', 'failed', 'error', 'cancelled'].includes( + ['successful', 'failed', 'error', 'canceled'].includes( lastMessage.status ) ) {