tests/functional/restart/57-ghost-job/flow.cylc
raw| 1 | [scheduling] |
| 2 | [[graph]] |
| 3 | R1 = foo |
| 4 | [runtime] |
| 5 | [[foo]] |
| 6 | # This task checks for its job in the data store and outputs it to file |
| 7 | script = """ |
| 8 | set +e # (read exits 1 for some reason) |
| 9 | read -r -d '' gqlQuery << _args_ |
| 10 | { |
| 11 | "request_string": " |
| 12 | query { |
| 13 | workflows(ids: [\"${CYLC_WORKFLOW_ID}\"]) { |
| 14 | jobs { |
| 15 | cyclePoint, name, submitNum |
| 16 | } |
| 17 | } |
| 18 | }" |
| 19 | } |
| 20 | _args_ |
| 21 | set -e |
| 22 | cylc client "$CYLC_WORKFLOW_ID" graphql < <(echo $gqlQuery) > gqlResponse.json |
| 23 | """ |