Skip to content

Commit 43e592a

Browse files
Merge pull request #2117 from oliver-sanders/uis-657
set state filter for offline job queries
2 parents 6c92640 + 6e5be70 commit 43e592a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/cylc/analysis/TimeSeries.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const jobFields = [
125125
/** The one-off query which retrieves historical job timing statistics */
126126
const JOB_QUERY = gql`
127127
query analysisJobQuery ($workflows: [ID], $tasks: [ID]) {
128-
jobs(live: false, workflows: $workflows, tasks: $tasks) {
128+
jobs(live: false, workflows: $workflows, tasks: $tasks, states: ["succeeded"]) {
129129
${jobFields.join('\n')}
130130
}
131131
}

src/views/Gantt.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const jobFields = [
120120
/** The query which retrieves historical Job timing statistics */
121121
const QUERY = gql`
122122
query ganttQuery ($workflows: [ID]) {
123-
jobs(live: false, workflows: $workflows) {
123+
jobs(live: false, workflows: $workflows, states: ["succeeded"]) {
124124
${jobFields.join('\n')}
125125
}
126126
}

0 commit comments

Comments
 (0)