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


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

Modify Active 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.
Notes:
§
§
Requests
Syntax
PUT http[s]://{datapathDNSname}/_rest_/active_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 Active 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 assigned resources and 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
a.
Responses
Response Elements
<MasterObjectList
   Aggregating="TRUE|FALSE"
   BucketName="{
string}"
   CachedSizeInBytes="{64‑bit integer}"
   ChunkClientProcessingOrderGuarantee="IN_ORDER|NONE"
   CompletedSizeInBytes="{64‑bit integer}"
   EntirelyInCache="TRUE|FALSE"
   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
         Id="{string}"
         InCache="TRUE|FALSE"
         Latest="TRUE|FALSE"
         Length="{
64‑bit integer}"
         Name="{string}"
         Offset="{64‑bit integer}"
         Version="{64‑bit integer}"/>
      </Object>
      ...
   </Objects>
</MasterObjectList>
where the response elements are defined as follows:
Whether the job can have additional PUTs or GETs appended to it. Jobs aggregate if created with the aggregating request parameter set to TRUE, or if created by the BlackPearl system in response to Amazon S3 PUT and GET requests. 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 Converged Storage System 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 is completely processed for this job. For RequestType=PUT, this indicates the amount of data written to all permanent data stores. For RequestType=GET, this indicates the amount of data that has been read successfully by the client. For RequestType=VERIFY, this indicates the amount of data for which the CRC has been verified.
Whether the job was created as the result of a native S3 command (TRUE) or a Create Bulk 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="bucket_name"
   CachedSizeInBytes="0"
   ChunkClientProcessingOrderGuarantee="IN_ORDER"
   CompletedSizeInBytes="0"
   EntirelyInCache="FALSE"
   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="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
         Id="70f80a64-4da9-42e2-bd0f-ee67cf496bbe" InCache="FALSE"
         Latest="TRUE" Length="12345" Name="object_name"
         Offset="0" Version=1"/>
      </Object>
   </Objects>
</MasterObjectList>