Skip To Content
ArcGIS Developers
Dashboard

Runs

Description

This resource returns all runs that have been executed for a specific task.

Request parameters

ParameterDetails
f

The response format. The default format is html.

Values: html | json | pjson

Example usage

The following is a sample request URL used to access the runs resource:

https://organization.domain.com/context/admin/system/tasks/fdbbc58261544b2f82b61c8111a08f16/runs?f=pjson

JSON Response example

{
  "result": [
    {
      "result": "GP Jobs have been cleaned.",
      "task": {
        "generation": 6,
        "created": "Apr 21, 2021, 10:42:17 PM",
        "active": true,
        "ownerId": "c076e404cec9497488f008fc5b83e6fa",
        "type": "GP_JOBS_CLEANER_TASK_TYPE",
        "orgId": "0123456789ABCDEF",
        "cronSchedule": {
          "dayOfWeek": "?",
          "hour": "*",
          "month": "*",
          "dayOfMonth": "*",
          "minute": "0"
        },
        "cronExpression": "0 0 * * * ?",
        "itemId": "0a78247d-0d0d-4b69-a658-03104e15bd66",
        "runIntervalSeconds": 3600,
        "taskType": "CleanGPJobs",
        "taskState": "active",
        "taskTitle": "gpCleanerTask",
        "maxOccurrences": -1,
        "id": "2a1ba86743414f929c0c1f38b32f1c9c",
        "lastStart": "Apr 22, 2021, 3:00:00 AM",
        "updated": "Apr 22, 2021, 3:04:29 AM",
        "taskId": "2a1ba86743414f929c0c1f38b32f1c9c"
      },
      "created": "Apr 22, 2021, 3:00:31 AM",
      "modified": "Apr 22, 2021, 3:00:31 AM",
      "runId": "dae1bfa5d6ec44349790ebb3f27dd4e1",
      "url": "",
      "status": "succeeded"
    }
    {
      "result": "GP Jobs have been cleaned.",
      "task": {
        "generation": 6,
        "created": "Apr 21, 2021, 10:42:17 PM",
        "active": true,
        "ownerId": "c076e404cec9497488f008fc5b83e6fa",
        "type": "GP_JOBS_CLEANER_TASK_TYPE",
        "orgId": "0123456789ABCDEF",
        "cronSchedule": {
          "dayOfWeek": "?",
          "hour": "*",
          "month": "*",
          "dayOfMonth": "*",
          "minute": "0"
        },
        "cronExpression": "0 0 * * * ?",
        "itemId": "0a78247d-0d0d-4b69-a658-03104e15bd66",
        "runIntervalSeconds": 3600,
        "taskType": "CleanGPJobs",
        "taskState": "active",
        "taskTitle": "gpCleanerTask",
        "maxOccurrences": -1,
        "id": "2a1ba86743414f929c0c1f38b32f1c9c",
        "lastStart": "Apr 22, 2021, 3:00:00 AM",
        "updated": "Apr 22, 2021, 3:04:29 AM",
        "taskId": "2a1ba86743414f929c0c1f38b32f1c9c"
      },
      "created": "Apr 22, 2021, 2:00:31 AM",
      "modified": "Apr 22, 2021, 2:00:31 AM",
      "runId": "a117f2c79e6b466b94947fa5521d514d",
      "url": "",
      "status": "succeeded"
    },
    {
      "result": "GP Jobs have been cleaned.",
      "task": {
        "generation": 6,
        "created": "Apr 21, 2021, 10:42:17 PM",
        "active": true,
        "ownerId": "c076e404cec9497488f008fc5b83e6fa",
        "type": "GP_JOBS_CLEANER_TASK_TYPE",
        "orgId": "0123456789ABCDEF",
        "cronSchedule": {
          "dayOfWeek": "?",
          "hour": "*",
          "month": "*",
          "dayOfMonth": "*",
          "minute": "0"
        },
        "cronExpression": "0 0 * * * ?",
        "itemId": "0a78247d-0d0d-4b69-a658-03104e15bd66",
        "runIntervalSeconds": 3600,
        "taskType": "CleanGPJobs",
        "taskState": "active",
        "taskTitle": "gpCleanerTask",
        "maxOccurrences": -1,
        "id": "2a1ba86743414f929c0c1f38b32f1c9c",
        "lastStart": "Apr 22, 2021, 3:00:00 AM",
        "updated": "Apr 22, 2021, 3:04:29 AM",
        "taskId": "2a1ba86743414f929c0c1f38b32f1c9c"
      },
      "created": "Apr 22, 2021, 1:00:31 AM",
      "modified": "Apr 22, 2021, 1:00:31 AM",
      "runId": "74c7d1565a444c88b3f73da502b6b957",
      "url": "",
      "status": "succeeded"
    },
    {
      "result": "GP Jobs have been cleaned.",
      "task": {
        "generation": 6,
        "created": "Apr 21, 2021, 10:42:17 PM",
        "active": true,
        "ownerId": "c076e404cec9497488f008fc5b83e6fa",
        "type": "GP_JOBS_CLEANER_TASK_TYPE",
        "orgId": "0123456789ABCDEF",
        "cronSchedule": {
          "dayOfWeek": "?",
          "hour": "*",
          "month": "*",
          "dayOfMonth": "*",
          "minute": "0"
        },
        "cronExpression": "0 0 * * * ?",
        "itemId": "0a78247d-0d0d-4b69-a658-03104e15bd66",
        "runIntervalSeconds": 3600,
        "taskType": "CleanGPJobs",
        "taskState": "active",
        "taskTitle": "gpCleanerTask",
        "maxOccurrences": -1,
        "id": "2a1ba86743414f929c0c1f38b32f1c9c",
        "lastStart": "Apr 22, 2021, 3:00:00 AM",
        "updated": "Apr 22, 2021, 3:04:29 AM",
        "taskId": "2a1ba86743414f929c0c1f38b32f1c9c"
      },
      "created": "Apr 22, 2021, 12:00:30 AM",
      "modified": "Apr 22, 2021, 12:00:31 AM",
      "runId": "234047ac6bb14d74abe1b65dce2172a4",
      "url": "",
      "status": "succeeded"
    }
  ],
  "total": 4,
  "num": 4,
  "start": 0,
  "nextStart": 0
}