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

Class status

source code

object --+    
         |    
   Command --+
             |
            status
Known Subclasses:

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]
 
Execute(self, shell) source code
 
_status(self, shell, dataset, job) source code

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]
  shortdoc = 'status <dataset_id>[.<job>] : Get status of jobs. ...
hash(x)
  numArgs = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

Execute(self, shell)

source code 
Overrides: Command.Execute

Class Variable Details [hide private]

shortdoc

hash(x)

Value:
'status <dataset_id>[.<job>] : Get status of jobs. AKA: getstatus'