GET /callcenter/croncheck


Shows a json report on the statuses of all cron jobs that publish to the api_vars table. The global_status key reflects the aggregate state of all tasks. If it is set to 0, then one or more tasks is down or has timed out. If set to 1, then all tasks are running or have ran successfully without timeout.

Sample Output

global_status": 1, // 1 == 'OK', 0 == 'At least one task timed out'
"summary": [
  {
    "id": "12",
    "status": 1,   // 1 == 'OK', 0 == 'Bad News'
    "current_state": "idle",
    "name": "dupe_validator_state",
    "description": "",
    "ttl_seconds": "120",
    "last_ran": "2015-09-29 23:59:02"
  },
    ...
]

Resource URL

http://www.lsitampa.com/callcenter/croncheck.{response_format}

Method

GET

Response Format

json

Parameters

offset - optional
The record offset from which point on to return records as a non-negative integer value. This is equivalent to the first parameter in the MySql LIMIT clause. If omitted: 0.
rowcount - optional
A non-negative integer value that specifies the number of records to return. If omitted: 2500.
jsonp_callback - optional
If making cross domain Ajax calls use this as the call-back method name in your Ajax request.

HTTP Errors

400
{
  "error": {
    "code": 400,
    "message": "Bad request (if set by the developer, specific reason for bad request)"
  }
}
404
{
  "error": {
    "code": 404,
    "message": "Not found"
  }
}
500
{
  "error": {
    "code": 500,
    "message": "Internal Server Error"
  }
}