kkhatua commented on a change in pull request #1531: DRILL-5571: Cancel running
query from its Web UI
URL: https://github.com/apache/drill/pull/1531#discussion_r232722408
##########
File path: exec/java-exec/src/main/resources/rest/profile/profile.ftl
##########
@@ -171,7 +188,30 @@ table.sortable thead .sorting_desc { background-image:
url("/static/img/black-de
<#assign queued = queueName != "" && queueName != "-" />
<div class="page-header"></div>
- <h3>Query Profile : <span
style='font-size:85%'>${model.getQueryId()}</span></h3>
+ <h3>Query Profile: <span style='font-size:85%'>${model.getQueryId()}</span>
+ <#if model.getQueryStateDisplayName() == "Running" ||
model.getQueryStateDisplayName() == "Planning">
Review comment:
Actually, on second thoughts, I can add STARTING, etc as well. If the query
ID doesnt exist, the page wouldn't exist, so we should be fine. I'll add the
change.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services