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 217 of file scheduler.py.

00218                :
00219   sleep(0.1)

def scheduler::dummyTaskLong ( )

Definition at line 220 of file scheduler.py.

00221                    :
00222   sleep(1)

def scheduler::errorTask ( )

Definition at line 223 of file scheduler.py.

00224                :
00225   return "This will always have an error"

def scheduler::exceptionTask ( )

Definition at line 226 of file scheduler.py.

00227                    :
00228   raise Exception("foo")
00229 
# Mimics cmsBuild workflow.
def scheduler::scheduleMore (   scheduler)

Definition at line 230 of file scheduler.py.

00231                            :
00232   scheduler.parallel("download", [], dummyTask)
00233   scheduler.parallel("build", ["download"], dummyTask)
00234   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 236 of file scheduler.py.