CMS 3D CMS Logo

Classes | Functions | Variables

scheduler Namespace Reference

Classes

class  _SchedulerQuitCommand
class  Scheduler

Functions

def dummyTask
def dummyTaskLong
def errorTask
def exceptionTask
def scheduleMore
def transition

Variables

tuple scheduler = Scheduler(10)

Function Documentation

def scheduler::dummyTask ( )

Definition at line 205 of file scheduler.py.

00206                :
00207   sleep(0.1)

def scheduler::dummyTaskLong ( )

Definition at line 208 of file scheduler.py.

00209                    :
00210   sleep(1)

def scheduler::errorTask ( )

Definition at line 211 of file scheduler.py.

00212                :
00213   return "This will always have an error"

def scheduler::exceptionTask ( )

Definition at line 214 of file scheduler.py.

00215                    :
00216   raise Exception("foo")
00217 
# Mimics cmsBuild workflow.
def scheduler::scheduleMore (   scheduler)

Definition at line 218 of file scheduler.py.

00219                            :
00220   scheduler.parallel("download", [], dummyTask)
00221   scheduler.parallel("build", ["download"], dummyTask)
00222   scheduler.serial("install", ["build"], dummyTask)

def scheduler::transition (   what,
  fromList,
  toList 
)

Definition at line 14 of file scheduler.py.

00015                                       :
00016   try:
00017     fromList.remove(what)
00018   except ValueError, e:
00019     print what + " not in source list"
00020     raise e
00021   toList.append(what)


Variable Documentation

Definition at line 224 of file scheduler.py.