Skip To Content
ArcGIS Developers
Dashboard

Get Job Execution Details

Description

License:

The ArcGIS Data Reviewer Server extension is required to use this resource.

Note:

This resource is dependent on ArcGIS Data Reviewer’s ArcMap runtime-based server object extension (SOE). ArcGIS Enterprise 10.9.x, part of the ArcGIS 2021 releases, will be the last release of ArcGIS Enterprise to support services published from ArcMap.

To prepare for this change, Esri recommends that customers consider Data Reviewer capabilities enabled using ArcGIS Pro and integrated in the Validation service.

A REST resource that returns details for a job execution. A canceled scheduled job may return the details of the last execution. This operation returns a JSON object of multiple name/value pairs.

Execution details vary by status. Execution details for a job that has not executed will contain an error. The return for a successful execution will contain status, message, start and finish time.

Request parameters

ParameterDetails
jobId

The batch job ID.

f

The response format. The default response format is html.

Values: html | json

Example usage

Returns details for a job that executed successfully.

https://localhost:6443/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer/BatchValidation/getJobExecutionDetails?jobId=2dca5d78-7ddd-4f3c-a9b0-0aa670f478c1&f=pjson

JSON response syntax

{
  "status": "Succeeded",
  "messages": "Executing (ExecuteBatchJob): ExecuteBatchJobScript C:\\arcgisserver\\data\\rev2.sde 1 c:\\arcgisserver\\directories\\arcgisuploads\\services\\ExecuteBatchJob.GPServer\\i05fd3d59-cd5a-448b-968f-94e2ecd5f73b\\sde_dupsCheck.rbj # # false\r\nStart Time: Thu Nov 03 16:38:01 2011\r\nExecuting: ExecuteBatchJobScript C:\\arcgisserver\\data\\rev2.sde 1 c:\\arcgisserver\\directories\\arcgisuploads\\services\\ExecuteBatchJob.GPServer\\i05fd3d59-cd5a-448b-968f-94e2ecd5f73b\\sde_dupsCheck.rbj # # false\r\nStart Time: Thu Nov 03 16:38:01 2011\r\nRunning script ExecuteBatchJobScript...\r\nRunning ExecuteBatchJob GP Tool with parameters: \n reviewer_workspace=C:\\arcgisserver\\data\\rev2.sde \n session_id=1 \n batch_job_file=c:\\arcgisserver\\directories\\arcgisuploads\\services\\ExecuteBatchJob.GPServer\\i05fd3d59-cd5a-448b-968f-94e2ecd5f73b\\sde_dupsCheck.rbj \n production_workspace= \n analysis_area= \n changed_features_only=false\r\nExecuting: ExecuteBatchJob C:\\arcgisserver\\data\\rev2.sde 1 c:\\arcgisserver\\directories\\arcgisuploads\\services\\ExecuteBatchJob.GPServer\\i05fd3d59-cd5a-448b-968f-94e2ecd5f73b\\sde_dupsCheck.rbj # # ALL_FEATURES\r\nStart Time: Thu Nov 03 16:38:05 2011\r\nConnecting to Reviewer workspace...\r\nAccessing Reviewer batch job...\r\nReading Session ID...\r\nOpening Batch Job...\r\nValidating Session ID...\r\nLoading Reviewer Session...\r\nSetting environment properties...\r\nValidating Batch Job...\r\nRunning Batch Job...\r\nWriting errors to reviewer table...\r\n28 Record(s) Written to Reviewer Table\r\nGenerating Output...\r\nBatch Job executed successfully...\r\nSucceeded at Thu Nov 03 16:38:12 2011 (Elapsed Time: 7.00 seconds)\r\nCompleted script ExecuteBatchJobScript...\r\nSucceeded at Thu Nov 03 16:38:12 2011 (Elapsed Time: 11.00 seconds)\r\nSucceeded at Thu Nov 03 16:38:12 2011 (Elapsed Time: 11.00 seconds)\r\n",
  "gpJobId": "jd9ae1fb5c31a407383549413851ce55e",
  "gpUrl": "https://localhost:6443/arcgis/rest/services/ExecuteBatchJob/GPServer/ExecuteBatchJob",
  "startTimeUtc": 1320363480000,
  "finishTimeUtc": 1320363499000
}

JSON response example

Returns details for a job that has not yet executed.

{
  "error" : {
    "code" : -1,
    "message" : "The execution of job with ID \u00277babe830-fdf3-4f07-be66-7d88ecfd6edc\u0027 has not yet started."
  }
}