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

Class setdatasetstatus

source code

object --+    
         |    
   Command --+
             |
            setdatasetstatus

Command: setstatus <dataset_id> <status>

Set the status of a dataset.
Can set the status of multiple datasets at once.

Arguments:
  <dataset_id>  Specify the dataset.
  <status>      Specify the status
                (PROCESSING, COMPLETE, ERRORS, READYTOPUBLISH,
                MOVING, OBSOLETE, READYTODELETE, DELETED, TEMPLATE)
  
Returns:
  Returns the result of the mysql query (success or failure).
  Warning that if the dataset is wrong it will likely
  print success because there was no mysql error.
  
Examples:
  Set status of dataset to PROCESSING
     status 1234 PROCESSING
  
  Set status of multiple datasets to different states
  (dataset 1234 to PROCESSING and dataset 4321 to ERRORS)
     status 1234 PROCESSING 4321 ERRORS
  
  Set status of multiple datasets using commas
  (datasets 1234, 1243 to COMPLETE)
     status 1234,1243 COMPLETE
  
  Set status of multile datasets using ranges
  (datasets 1234 - 1235 to READYTOPUBLISH)
     status 1234-1235 READYTOPUBLISH
 

Instance Methods [hide private]
 
Execute(self, shell) source code
 
_status(self, shell, dataset, status) 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 = 'setdatasetstatus <dataset_id> <status> : Set statu...
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:
'setdatasetstatus <dataset_id> <status> : Set status of dataset.'