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

Class reset

source code

object --+    
         |    
   Command --+
             |
            reset

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

Reset a dataset or a specific job from a dataset.
Can reset multiple jobs or datasets at once.

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

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

Inherited from object: __class__

Method Details [hide private]

Execute(self, shell)

source code 
Overrides: Command.Execute