diff --git a/client/routes/workflow/index.vue b/client/routes/workflow/index.vue index b40d5a17..dcab25d1 100644 --- a/client/routes/workflow/index.vue +++ b/client/routes/workflow/index.vue @@ -56,6 +56,7 @@ :baseAPIURL="baseAPIURL" :taskQueueName="taskQueue.name" :isWorkerRunning="isWorkerRunning" + :isWorkflowRunning="this.summary.isWorkflowRunning" @onNotification="onNotification" />
-
- Stack trace at {{ stackTraceTimestamp.format('h:mm:ss a') }} - Refresh -
- - - {{ payload }} - - - + + Workflow execution has finished. No stack trace available + + {{ stackTrace.error }} - + There are no Workers currently listening to the Task Queue: + Stack trace at {{ stackTraceTimestamp.format('h:mm:ss a') }} + Refresh + + + {{ payload }} + +
@@ -50,9 +56,14 @@ export default { stackTraceTimestamp: undefined, }; }, - props: ['baseAPIURL', 'taskQueueName', 'isWorkerRunning'], + props: [ + 'baseAPIURL', + 'taskQueueName', + 'isWorkerRunning', + 'isWorkflowRunning', + ], created() { - if (!this.isWorkerRunning) { + if (!this.isWorkerRunning || !this.isWorkflowRunning) { return; } @@ -66,7 +77,7 @@ export default { .post(`${this.baseAPIURL}/query/__stack_trace`) .then(({ queryResult }) => { queryResult.payloads = queryResult.payloads.map(p => - p.replaceAll('\n', ' \n ') + p?.replaceAll('\n', ' \n ') ); this.stackTrace = queryResult; this.stackTraceTimestamp = moment(); @@ -85,7 +96,7 @@ export default { }, watch: { isWorkerRunning: function(newVal, oldVal) { - if (newVal == false) { + if (newVal == false || !this.isWorkflowRunning) { this.queries = []; return;