Pipeline status retrieval

To retrieve the status of a triggered/running/finished pipeline the below query needs to be executed for the relevant grouped asset:

query {
  asset(groupedAssetId: "[GROUPED_ASSET_ID]") {
    ... on GroupedAssetOutput {
      id
      asset {
        id
        artifactsV2 {
          parentId
          contents {
            id
            dataCategory
            savedFormat
            addresses {
              parentId
              total
              contents {
                ... on AddressHspcOutput {
                  # POINT CLOUD
                  id
                  processingPipelineInfo {
                    # PIPELINE INFO
                    id # ID of the pipeline
                    status # PIPELINE STATUS - SUCCESS/FAILED/etc.
                    name # Name of the pipeline
                  }
                }
                ... on AddressPanoramicOutput {
                  # PANORAMIC
                  processingPipelineInfo {
                    id
                    status
                  }
                }
                ... on AddressOgc3DOutput {
                  # MESH
                  processingPipelineInfo {
                    id
                    status
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Response:

{
  "data": {
    "asset": {
      "id": "40b18de4-7749-45a6-a129-dbc9b1850df9",
      "asset": {
        "id": "d7b85475-0f8b-4032-925e-9d46adf0ff3f",
        "artifactsV2": {
          "parentId": "d7b85475-0f8b-4032-925e-9d46adf0ff3f",
          "contents": [
            {
              "id": "550cd967-dfd9-4645-b90f-d602f9e5ee03",
              "dataCategory": "INTERMEDIATE_RESULT",
              "savedFormat": "B2G",
              "addresses": {
                "parentId": "550cd967-dfd9-4645-b90f-d602f9e5ee03",
                "total": 1,
                "contents": [{}]
              }
            },
            {
              "id": "906af1ab-fb95-41d1-9ada-5fb6abcfa3a1",
              "dataCategory": "INTERMEDIATE_RESULT",
              "savedFormat": "RECTIFIED_GRAYSCALED_IMAGES_WITH_METADATA",
              "addresses": {
                "parentId": "906af1ab-fb95-41d1-9ada-5fb6abcfa3a1",
                "total": 1,
                "contents": [{}]
              }
            },
            {
              "id": "ae1d8a7f-b0b6-45ea-b129-5d153ace82c0",
              "dataCategory": "POINT_CLOUD",
              "savedFormat": "HSPC",
              "addresses": {
                "parentId": "ae1d8a7f-b0b6-45ea-b129-5d153ace82c0",
                "total": 1,
                "contents": [
                  {
                    "id": "3a373fe4-bfb8-4275-8037-3682f0ea7358",
                    "processingPipelineInfo": {
                      "id": "d51fabc9-9ce2-43aa-9db9-12edb9d7cf76",
                      "name": "TUKAN_B2G_TO_HSPC",
                      "status": "SUCCESS"
                    }
                  }
                ]
              }
            },
            {
              "id": "dcd8fd28-151b-4dfc-912d-48bfa295fc8b",
              "dataCategory": "INTERMEDIATE_RESULT",
              "savedFormat": "METADATA",
              "addresses": {
                "parentId": "dcd8fd28-151b-4dfc-912d-48bfa295fc8b",
                "total": 1,
                "contents": [{}]
              }
            }
          ]
        }
      }
    }
  }
}

The pipeline status enum values can be retrieved from the graphql api endpoint documentation, the current values are

{
  CREATED,
  WAITING_FOR_RESOURCE,
  PREPARING,
  PENDING,
  RUNNING,
  SUCCESS,
  SUCCESS_NO_OUTPUT,
  FAILED,
  CANCELED,
  SKIPPED,
  MANUAL_TRIGGER,
  SCHEDULED
}