Purpose
Data Mover provides the following filter variations when listing jobs:
- Jobs that meet the specified conditions, including start time, end time, and status
- Jobs that ran and met the specified conditions, including start time, end time, status, and priority
- Jobs currently running that meet the specified conditions, including start time, status, and priority
- Jobs that have frozen steps
Item | Description | ||
---|---|---|---|
URL | /datamover/jobs /datamover/executedJobs /datamover/executingJobs /datamover/jobs?freezeJobStepsOnly=value |
||
Method | GET |
Request Parameters (/datamover/jobs)
This variation returns a list of job names that meet the specified conditions, including start time, end time, and status. If no parameters are supplied, a list of new and completed jobs is returned.
- startTimeAfter
- Description: Jobs started later than specified time
- endTimeBefore
- Description: Jobs finished earlier than specified time.
- endTimeAfter
- Description: Jobs finished later than specified time.
- freezeJobStepsOnly
- Description: List only jobs that have freezeJobStepsOnly set to true
- jobName
- Description: Job name
- latestJobsOnly
- Description: List the most recent job that ran in the daemon.
- status
- Description: Jobs with last starting status that matches one of the following:
- NEW: All new jobs
- INITIALIZING: All initializing jobs
- RUNNING: All running jobs
- BLOCKED: All blocked jobs
- COMPLETED: All successfully completed jobs
- FAILED: All failed jobs
- RESTARTING: All restarting jobs
- CANCELLED: All user-cancelled jobs
- QUEUED: All queued jobs
Response Parameters (/datamover/jobs)
- jobExecutionName
- Description: Started job name
- jobName
- Description: Job name (maximum characters: 237)
- startTime
- Description: Start time if job has started or null if job did not start
- endTime
- Description: End time if job has started or null if job did not start
- status
- Description: Status of the job (maximum characters: 12), where possible values are specified in the Request Parameters section
- Priority
- Description: Priority of the job if started (maximum characters: 11), where the value is one of the following:
- UNSPECIFIED
- LOW
- MEDIUM
- HIGH
Response Example (/datamover/jobs)
This example shows an array of jobs with a start time later than the specified time, no jobs are found, and an empty array.
[ { "jobName" : "runningJob" , "startTime" : "2015-07-16T17:14:13Z", "endTime" : null , "status" : "RUNNING" , "priority" : "MEDIUM" , "links" : [ { "rel" : "status" , "href" : "http://server/datamover/executingJobs/runningJob-1417744247669" }, { "rel" : "past_executions" , "href" : "http://server/datamover/executedJobs?jobName=runningJob&startTimeAfter=<value>" } { "rel" : "job_steps" , "href" : "http://server/datamover/jobs/runningJob/steps" } ] }, { "jobName" : "successfulJob" , "startTime" : "2015-07-16T17:14:13Z", "endTime" : "2015-07-16T19:14:13Z", "status" : "COMPLETED" , "priority" : "MEDIUM" , "links" : [ { "rel" : "status" , "href" : "http://server/datamover/executedJobs/successfulJob-20141204175020" }, { "rel" : "past_executions" , "href" : "http://server/datamover/executedJobs?jobName=successfulJob &startTimeAfter=<value> " } { "rel" : "job_steps" , "href" : "http://server/datamover/jobs/successfulJob/steps" } ] }, { "jobName" : "failedJob" , "startTime" : 1417744247669, "endTime" : 1417744323437, "status" : "FAILED" , "priority" : "MEDIUM" , "links" : [ { "rel" : "status" , "href" : "http://server/datamover/executedJobs/failedJob-20141204175020" }, { "rel" : "past_executions" , "href" : "http://server/datamover/executedJobs?jobName=failedJob &startTimeAfter=<value> " } { "rel" : "job_steps" , "href" : "http://server/datamover/jobs/failedJob/steps" } ] } ]
Request Parameters (/datamover/executedJobs)
This variation returns a list of job names that meet the specified conditions, including jobs that are new or are running.
- startTimeAfter
- Description: Jobs started later than specified time
- endTimeBefore
- Description: Jobs finished earlier than specified time
- endTimeAfter
- Description: Jobs finished later than specified time
- status
- Description: Jobs with last run status that matches one of the following:
- COMPLETED: All successfully completed jobs
- FAILED: All failed jobs
- CANCELLED: All user-cancelled jobs
- jobName
- Description: Started jobs mapped to the specified name
Response Parameters (/datamover/executedJobs)
- endTime
- Description: End time if job has started or null if not started
- estimatedJobSize
- Description: High estimate of job size
- jobExecutionName
- Description: Started job name
- jobName
- Description: Job name (maximum characters: 237)
- startTime
- Description: Start time if job has started or null if not started
- status
- Description: Job status (maximum characters: 11), where possible values are listed in the Request Parameters section
- Priority
- Description: Priority of the job if and when started (maximum characters: 11), where the value is one of the following:
- UNSPECIFIED
- LOW
- MEDIUM
- HIGH
- submitTime
- Description: Time when job was submitted
RESTful API Example (/datamover/executedJobs)
This example shows a started job, no jobs found, and an empty array.
[ { "jobExecutionName" : "successfulJob-20141204175020" , "jobName" : "successfulJob" , "startTime" :"2015-07-01T17:38:12Z", "endTime" : "2015-07-01T19:38:12Z", "status" : "COMPLETED" , "priority" : "MEDIUM" , "links" : [ { "rel" : "status" , "href" : "http://server/datamover/executedJobs/successfulJob-20141204175020" } { "rel" : "job_steps" , "href" : "http://server/datamover/jobs/successfulJob/steps" } ] }, { "jobExecutionName" : "successfulJob-20141204175111" , "jobName" : "successfulJob" , "startTime" : "2015-07-02T17:38:12Z", "endTime" : "2015-07-02T19:38:12Z", "status" : "COMPLETED" , "priority" : "MEDIUM" , "links" : [ { "rel" : "status" , "href" : "http://server/datamover/executedJobs/successfulJob-20141204175111" } { "rel" : "job_steps" , "href" : "http://server/datamover/jobs/successfulJob/steps" } ] }, { "jobExecutionName" : "failedJob-20141204175020" , "jobName" : "failedJob" , "startTime" : "2015-07-03T17:38:12Z", "endTime" : "2015-07-03T19:38:12Z", "status" : "FAILED" , "priority" : "MEDIUM" , "links" : [ { "rel" : "status" , "href" : "http://server/datamover/executedJobs/failedJob-20141204175020" } { "rel" : "job_steps" , "href" : "http://server/datamover/jobs/failedJob/steps" } ] } ]
Request Parameters (/datamover/executingJobs)
This variation returns all jobs currently running on the Data Mover daemon and started later than the specified time, where the value is one of the following:
- INITIALIZING
- RUNNING
- BLOCKED
- RESTARTING
- QUEUED
You can provide the following optional parameters:
- startTimeAfter
- Description: Jobs started later than specified time
- status
- Description: Jobs with last run status that matches one of the following:
- COMPLETED: All successfully completed jobs
- FAILED: All failed jobs
- CANCELLED: All user-cancelled jobs
Response Parameters (/datamover/executingJobs)
- jobExecutionName
- Description: Started job name
- jobName
- Description: Job name (maximum characters: 237)
- startTime
- Description: Start time if job has been started or null if not started
- status
- Description: Status of the job (maximum characters: 11), where possible values are specified in Request Parameters list
- Priority
- Description: Priority of the job if and when started (maximum characters: 11), where the value is one of the following:
- UNSPECIFIED
- LOW
- MEDIUM
- HIGH
RESTful API Example (/datamover/executingJobs)
This example shows a started job, no jobs found, and an empty array.
[ { "jobExecutionName" : "runningJob-1417744247669" , "jobName" : "runningJob" , "startTime" :"2015-07-16T17:14:13Z", "status" : "RUNNING" , "priority" : "MEDIUM" , "links" : [ { "rel" : "status" , "href" : "http://server/datamover/runningJobs/runningJob-1417744247669" }, { "rel" : "history" , "href" : "http://server/datamover/executedJobs?jobName=runningJob&startTimeAfter=<value>" } { "rel" : "job_steps" , "href" : "http://server/datamover/jobs/runningJob/steps" } ] } ]
Request Parameters (/datamover/jobs?freezeJobStepsOnly=value)
- freezeJobStepsOnly
- Description: Jobs that have freeze job steps set to true
Response Parameters (/datamover/jobs?freezeJobStepsOnly=value)
- jobExecutionName
- Description: Started job name
- jobName
- Description: Job name (maximum characters: 237)
- links
- Description: List of links to job status, past job executions, and job steps
- Priority
- Description: Priority of the job if and when started (maximum characters: 11), where the value is one of the following:
- UNSPECIFIED
- LOW
- MEDIUM
- HIGH
- startTime
- Description: Job start time
- status
- Description: Status of job (maximum characters: 12), where possible values are specified in the Request Parameters description