Package iceprod :: Package client :: Module commands :: Class getstatus
[hide private]
[frames] | no frames]

Class getstatus

source code

object --+        
         |        
   Command --+    
             |    
        status --+
                 |
                getstatus

Command: status <dataset_id>[.<job>]
         or
      getstatus <dataset_id>[.<job>]

Get the status of all jobs or a specific job from a dataset.
Can get the status of multiple jobs over multiple datasets at once.

Arguments:
  <dataset_id>  Specify the dataset.
  [.<job>]      (Optional) Specify the job within the dataset.
  
Returns:
  Returns the result of the mysql query (success or failure).
  Warning that if the dataset or job id is wrong it will likely
  print success because there was no mysql error.
  
Examples:
  Get status of whole dataset  (dataset 1234, all jobs)
     status 1234
  
  Get status of individual jobs from different datasets
  (dataset 1234, job 10 and dataset 4321, job 20)
     status 1234.10 4321.20
  
  Get status of multiple datasets and jobs using commas
  (datasets 1234, 1243 and jobs 1, 3, and 5)
     status 1234,1243.1,3,5
  
  Get status of multile datasets and jobs using ranges
  (datasets 1234 - 1235, jobs 1 - 5)
     status 1234-1235.1-5
 

Instance Methods [hide private]

Inherited from status: Execute

Inherited from status (private): _status

Inherited from Command: CheckArgs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __doc__ = status.__doc__
  shortdoc = 'getstatus <dataset_id>[.<job>] : Get status of jobs.'
hash(x)

Inherited from status: numArgs

Properties [hide private]

Inherited from object: __class__