Check the status of a job
Route: https://api.conjoint.ly/api/jobs/jobId/get
Action: GET
Checks the status of a launched job (whose id is jobId
). Response varies, depending on the type of job being checked.
Response if job was not found
{
"message": "No query results for model [App\\Models\\HookedJob] jobId"
}
Response if job was found
{
"data": {
"id": jobId,
"status": "completed", // Status can be "created", "pending", "failed", or "completed"
"group": null, // Group is not used in most jobs
"response": { // Response can be null or an object
// Response varies, depending on the type of job being checked.
"experimentId": 478544,
"name": "New survey (7 July)",
...
},
"storage": null // Storage is not used in most jobs
},
"meta": {
"hook": "..." // Numerical ID of the hook
}
}