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

Class suspend

source code

object --+    
         |    
   Command --+
             |
            suspend

Command: suspend <dataset_id>[.<job>]

Suspend a whole dataset or a specific job from a dataset.
Can suspend multiple jobs or datasets at once.

Arguments:
  <dataset_id>  Specify the dataset to suspend.
  [.<job>]      (Optional) Specify the job within the dataset to suspend.
       
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:
  Suspend whole dataset  (dataset 1234, all jobs)
     suspend 1234
  
  Suspend individual jobs from different datasets
  (dataset 1234, job 10 and dataset 4321, job 20)
     suspend 1234.10 4321.20
  
  Suspend multiple datasets and jobs using commas
  (datasets 1234, 1243 and jobs 1, 3, and 5)
     suspend 1234,1243.1,3,5
  
  Suspend multile datasets and jobs using ranges
  (datasets 1234 - 1235, jobs 1 - 5)
     suspend 1234-1235.1-5
 

Instance Methods [hide private]
 
Execute(self, shell) source code
 
_suspend(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 = 'suspend <dataset_id>[.<job>] : Suspend jobs.'
hash(x)
  numArgs = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

Execute(self, shell)

source code 
Overrides: Command.Execute