Job

  • URL:https://server:port/arcgis/admin/services/[<folder>]/<serviceName.serviceType>/jobs/<jobID>
  • Operations:Cancel Job, Delete Job
  • Version Introduced:10.6.1

Description

A job represents the asynchronous execution of an operation by a geoprocessing service.

From a Job's page, you can cancel the job if its current status is SUBMITTED or EXECUTING (keeping the job information in the system), or delete the job regardless of its current status, which will remove all trace of it from the service and cancel the job if applicable.

Request parameters

ParameterDetails
f

The response format. The default response format is html.

Values: html | json

HTML response properties

PropertyDetails
Job ID

The unique ID of the job, which is used for its URL.

Submitted Time

The time the job was submitted in milliseconds from epoch.

End Time

The time the job was completed, either as a failure or a success.

Status

The current status of the job. The possible statuses are as follows:

  • esriJobNew
  • esriJobSubmitted
  • esriJobExecuting
  • esriJobSucceeded
  • esriJobFailed
  • esriJobCancelling
  • esriJobCancelled
  • esriJobWaiting

User

The ArcGIS Server user who submitted the job. If the service is anonymous, this parameter will be unavailable.

Machine Name

The machine running the job.

url

A link to the job's page in the ArcGIS Server Services Directory, which is formatted https://server:port/arcgis/rest/services/[<folder>]/<serviceName.serviceType>/jobs/<jobID>. This page displays all messages logged during the job execution.

JSON response properties

PropertyDetails
jobID

The unique ID of the job, which is used for its URL.

submittedTime

The time the job was submitted in milliseconds from epoch.

endTime

The time the job was completed, either as a failure or a success.

status

The current status of the job. The possible statuses are as follows:

  • esriJobNew
  • esriJobSubmitted
  • esriJobExecuting
  • esriJobSucceeded
  • esriJobFailed
  • esriJobCancelling
  • esriJobCancelled
  • esriJobWaiting

username

The ArcGIS Server user who submitted the job. If the service is anonymous, this value is null.

machinename

The machine running the job.

url

The URL of the job's page in the ArcGIS Server Services Directory, which is formatted https://server:port/arcgis/rest/services/[<folder>]/<serviceName.serviceType>/jobs/<jobID>. This page displays all messages logged during the job execution.

JSON response example

{
  "jobId": "j290c2d4e60364xx2a0c735fb9b68428a",
  "submittedTime": 1523033824000,
  "endTime": 1523033841000,
  "status": "esriJobSucceeded",
  "username": null,
  "machinename": "server.domain.com",
  "url": "https://server:port/arcgis/admin/services/[<folder>]/<serviceName.serviceType>/jobs/<jobID>"
}