Spectra Logic
1-800-833-1132 : 1-303-449-6400


Spectra S3 Bucket, Object, and Job Operations : Job Operations : Modify Job

Modify Job
Description
Modify the priority or the start date of a job that is in process. Executing this request also resets the heartbeat for the job, so that it does not timeout.
Note:
Requests
Syntax
PUT http[s]://{datapathDNSname}/_rest_/job/{job UUID or unique identifier}/[?created_at={date}][&name={string}] [&priority=URGENT|HIGH|NORMAL|LOW]
To determine the UUID for a job, see Get Jobs.
Request Parameters
The date to set as the StartDate in the format YYYY-MM-DDThh:mm:ss.xxxZ or as the number of seconds that have elapsed since January 1, 1970 at 00:00:00 GM.
The priority for processing this job. The job priority determines the resources assigned and the processing order. Jobs with priority URGENT can use up all of the resources and prevent other jobs from making progress. Use this priority sparingly.
Values: URGENT, HIGH, NORMAL, LOW
Responses
Response Elements
<MasterObjectList
   Aggregating="TRUE|FALSE"
   BucketName="{
string}"
   CachedSizeInBytes="{64-bit integer}"
   ChunkClientProcessingOrderGuarantee="IN_ORDER|NONE"
   CompletedSizeInBytes="{64-bit integer}"
   JobId="{string}"
   Naked="TRUE|FALSE"
   Name="{string}"
   OriginalSizeInBytes="{64-bit integer}"
   Priority="CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND"
   RequestType="GET|PUT|VERIFY"
   StartDate="{YYYY-MM-DDThh:mm:ss.xxxZ}"
   Status="IN_PROGRESS|COMPLETED|CANCELED"
   UserId="{
string}"
   UserName="{string}"
   <Nodes>
      <Node
         EndPoint="{string}" Id="{string}"/>
      ...
   </Nodes>
   <Objects
      ChunkId="{string}"
      ChunkNumber="{32-bit integer}">
      <Object
         InCache="TRUE|FALSE"
         Latest="TRUE|FALSE"
         Length="{
64-bit integer}"
         Name="{string}"
         Offset="{64-bit integer}
         Version="{64-bit integer}"/>
      ...
   </Objects>
   ...
</MasterObjectList>
where the response elements are defined as follows:
Whether the job can have additional work appended to it. Jobs can aggregate if they are created with the aggregating request parameter set to TRUE (Naked=FALSE) or if they are created by the BlackPearl gateway in response to Amazon S3 PUT and GET requests (Naked=TRUE). Values: TRUE, FALSE
Whether the job can have additional work appended to it. Jobs can aggregate if they are created with the aggregating request parameter set to TRUE (Naked=FALSE) or if they are created by the BlackPearl gateway in response to Amazon S3 PUT and GET requests (Naked=TRUE). Values: TRUE, FALSE
The amount of data that has been transferred to the cache for this job. For RequestType=PUT, this is the amount of data successfully transferred to the BlackPearl Deep Storage Gateway from the client. For RequestType=GET, this the amount of data either in cache originally, or loaded into cache from the permanent data store. For RequestType=VERIFY, this the amount of data loaded into cache from the permanent data store.
The amount of data that has been transferred to the cache for this job. For RequestType=PUT, this is the amount of data successfully transferred to the BlackPearl Deep Storage Gateway from the client. For RequestType=GET, this the amount of data either in cache originally, or loaded into cache from the permanent data store. For RequestType=VERIFY, this the amount of data loaded into cache from the permanent data store.
Whether the job was created as the result of a native S3 command (TRUE) or a Create Get/Put/Verify Job command (FALSE). Values: TRUE, FALSE
§
IN_PROGRESS — The job is currently running.
§
COMPLETED — The job completed.
§
CANCELED — The job was canceled by the user or automatically due to internal timeouts.
Example
Sample Request
This request modifies the priority of the job with the UUID 0123edab-a4ec-4472-927e-c4df0ac9416b to urgent.
PUT http://blackpearl-hostname/_rest_/job/0123edab-a4ec-4472-927e-c4df0ac9416b/?priority=URGENT HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<MasterObjectList
   Aggregating="FALSE"
   BucketName="default_bucket_name"
   CachedSizeInBytes="0"
   ChunkClientProcessingOrderGuarantee="IN_ORDER"
   CompletedSizeInBytes="0"
   JobId="0123edab-a4ec-4472-927e-c4df0ac9416b"
   Naked="FALSE"
   Name="Untitled"
   OriginalSizeInBytes="12345"
   Priority="URGENT"
   RequestType="PUT"
   StartDate="2014-10-02T11:40:18.000Z"
   UserId="0e48e86a-54ca-4078-af35-40138da7b1a6"
   UserName="default_user_name"
   WriteOptimization="CAPACITY">
   <Nodes>
      <Node
         EndPoint="blackpearl-hostname"
         Id="ee05bc5f-3a0e-41c3-992d-9ea99ce7552e"/>
   </Nodes>
   <Objects
      ChunkId="d4b8a15a-d635-4854-b746-751edafe5c88"
      ChunkNumber="1">
      <Object
         InCache="FALSE"
         Latest="TRUE"
         Length="12345"
         Name="default_object_name"
         Offset="0"
         Version="1"/>
   </Objects>
</MasterObjectList>