You can monitor a currently running job status using the API described below
Retrieve summary of Job execution
GET Track Job Progress |
|
End Point URL |
https://{accelQ server}/awb/api/1.0/{tenantCode}/runs/{runPid} // tenant code can be retrieved from "AUTH PROPERTIES" section in User's Profile card on accelQ. |
Request Headers |
user_id api_key Content-Type: application/json
// api_key can be copied from user's Profile badge in accelQ. Make sure it corresponds to the User_id specified as a header. |
Sample Response Payload |
{ // status values: completed, Error, ABORTED, In Progress, Scheduled |
Command line tracking of job execution
You can execute this same API from command line using CURL. An example below:
Command Template
curl -H "Content-Type: application/json" -H "api_key: {api key}" -H "user_id: {user id}" -X GET {base url}/awb/api/1.0/{tenantCode}/runs/{runPid}
Note: Header values as described in the API description section.
Example
curl -H "Content-Type: application/json" -H "api_key: c7eed27p6d3x52d67c9a791289d98563" -H "user_id: user@company.com" -X GET http://company.accelq.io/awb/api/1.0/companytenant/runs/123
Comments
0 comments
Please sign in to leave a comment.