Created
June 15, 2020 02:22
-
-
Save kinow/a1f99b40d0deb3766e13b0584a84773c to your computer and use it in GitHub Desktop.
query.gql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subscription OnWorkflowDeltasData ($workflowId: ID) { | |
deltas (workflows: [$workflowId], stripNull: true) { | |
...WorkflowTreeDeltas | |
} | |
} | |
# TREE DELTAS BEGIN | |
fragment WorkflowTreeDeltas on Deltas { | |
id | |
shutdown | |
added { | |
...WorkflowTreeAddedData | |
} | |
updated { | |
...WorkflowTreeUpdatedData | |
} | |
pruned { | |
...WorkflowTreePrunedData | |
} | |
} | |
fragment WorkflowTreeAddedData on Added { | |
workflow { | |
...WorkflowData | |
cyclePoints: familyProxies(ids: ["root"], ghosts: true) { | |
cyclePoint | |
} | |
taskProxies(sort: { keys: ["cyclePoint"] }, ghosts: true) { | |
...TaskProxyData | |
jobs(sort: { keys: ["submit_num"], reverse:true }) { | |
...JobData | |
} | |
} | |
familyProxies (exids: ["root"], sort: { keys: ["firstParent"]}, ghosts: true) { | |
...FamilyProxyData | |
} | |
} | |
cyclePoints: familyProxies(ids: ["root"], ghosts: true) { | |
cyclePoint | |
} | |
familyProxies (exids: ["root"], sort: { keys: ["firstParent"]}, ghosts: true) { | |
...FamilyProxyData | |
} | |
taskProxies(sort: { keys: ["cyclePoint"] }, ghosts: true) { | |
...TaskProxyData | |
} | |
jobs(sort: { keys: ["submit_num"], reverse:true }) { | |
...JobData | |
} | |
} | |
fragment WorkflowTreeUpdatedData on Updated { | |
taskProxies(sort: { keys: ["cyclePoint"] }, ghosts: true) { | |
...TaskProxyData | |
} | |
jobs(sort: { keys: ["submit_num"], reverse:true }) { | |
...JobData | |
} | |
familyProxies (exids: ["root"], sort: { keys: ["firstParent"]}, ghosts: true) { | |
...FamilyProxyData | |
} | |
} | |
fragment WorkflowTreePrunedData on Pruned { | |
jobs | |
taskProxies | |
familyProxies | |
} | |
# TREE DELTAS END | |
# WORKFLOW DATA BEGIN | |
fragment WorkflowData on Workflow { | |
id | |
name | |
status | |
owner | |
host | |
port | |
} | |
fragment FamilyProxyData on FamilyProxy { | |
id | |
name | |
state | |
cyclePoint | |
firstParent { | |
id | |
name | |
cyclePoint | |
state | |
} | |
} | |
fragment TaskProxyData on TaskProxy { | |
id | |
name | |
state | |
isHeld | |
cyclePoint | |
latestMessage | |
firstParent { | |
id | |
name | |
cyclePoint | |
state | |
} | |
task { | |
meanElapsedTime | |
name | |
} | |
} | |
fragment JobData on Job { | |
id | |
firstParent: taskProxy { | |
id | |
} | |
batchSysName | |
batchSysJobId | |
host | |
startedTime | |
submittedTime | |
finishedTime | |
state | |
submitNum | |
} | |
# WORKFLOW DATA END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment