Skip to content

Commit 6e5be70

Browse files
set state filter for offline job queries
* Respond to schema changes in cylc/cylc-uiserver#657 * Jobs queries used to only return succeeded jobs (all the analysis view cares about). * The `states` and `exstates` filters have now been implemented to allow jobs in other states to be queried (to support new views).
1 parent e6fc307 commit 6e5be70

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)