Check job state

Created by Pedro Ondiviela ยท last update June 10, 2020

About this endpoint

Using this endpoint will retrieve you the state of a certain JOB:

GET INDEX_SERVICE_URL/services/jobs/INDEX_TOKEN/JOB_ID


Responses

You can get the following states:

  • SUCCESS : The JOB has finished OK
  • FAILURE : A problem occurs
  • QUEUED : The job is queued, waiting for other job to finish.
  • RUNNING : The JOB has not finished yet.

Response example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[
  {
      id: "554075bee4b0950771fea45f",
      clientId: "testclient",
      feedId: "testfeedid",
      fileId: "autogenerated-id",
      state: "SUCCESS",
      date: "Apr 29, 2015 8:10:06 AM",
      metrics: {
          rTime: 590,
          wTime: 7322,
          tTime: 9117,
          wProcessed: 22511,
          rProcessed: 22511
      }
  }
]