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

Class excludegrid

source code

object --+    
         |    
   Command --+
             |
            excludegrid

Command: excludegrid <grid> <dataset_id>

Suspend a dataset on a grid
Can suspend multiple datasets and grids at once.
 
Arguments:
  <grid>        Specify the grid, either by name or id
  <dataset_id>  Specify dataset to act on
  
Returns:
  Returns the result of the mysql query (success or failure).
  Warning that if the grid or dataset is wrong it will likely
  print success because there was no mysql error.
  
Examples:
  Suspend 1234 on GLOW
     excludegrid GLOW 1234
        or
     excludegrid 1 1234
  
  Suspend 1234 and 1243 on GLOW and glow-test
     excludegrid GLOW,glow-test 1234,1243
 

Instance Methods [hide private]
 
Execute(self, shell) source code
 
_exclude(self, shell, grid, dataset) source code
 
CheckArgs(self, args) source code

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

Class Variables [hide private]
  shortdoc = 'excludegrid <grid> <dataset_id> : Suspend a datase...
hash(x)
  numArgs = 2
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

Execute(self, shell)

source code 
Overrides: Command.Execute

CheckArgs(self, args)

source code 
Overrides: Command.CheckArgs

Class Variable Details [hide private]

shortdoc

hash(x)

Value:
'excludegrid <grid> <dataset_id> : Suspend a dataset on a grid.'