*** empty log message ***

svn path=/trunk/boinc/; revision=2125
This commit is contained in:
Karl Chen 2003-08-15 23:22:30 +00:00
parent 8cd084fdaf
commit 2f34a97cad
1 changed files with 8 additions and 4 deletions

View File

@ -14,7 +14,7 @@ class ProjectBackend(ProjectUC):
def __init__(self, num_wu, redundancy) def __init__(self, num_wu, redundancy)
self.num_wu = num_wu self.num_wu = num_wu
ProjectUC.__init__(self, redundancy = redundancy, short_name = 'test_backend') ProjectUC.__init__(self, redundancy = redundancy, short_name = 'test_backend')
def run(self): def make_work(self):
self.install() self.install()
self.sched_install('make_work', cushion=self.num_wu-1) self.sched_install('make_work', cushion=self.num_wu-1)
self.start_servers() self.start_servers()
@ -22,17 +22,21 @@ class ProjectBackend(ProjectUC):
# wait for 500 results to be generated # wait for 500 results to be generated
n = 0 n = 0
db = self.db_open() db = self.db_open()
while n < self.num: while n < self.num_wu:
n = num_wus_left(db) n = num_wus_left(db)
verbose_echo(1, "Generating results [%d/%d]" % (n,self.num)); verbose_echo(1, "Generating workunits [%d/%d]" % (n,self.num_wu));
time.sleep(.1) time.sleep(.1)
db.close() db.close()
verbose_echo(1, "Generating results [%d/%d]: done." % (self.num,self.num)); verbose_echo(1, "Generating workunits [%d/%d]: done." % (self.num_wu,self.num_wu));
# Stop the project, deinstall make_work, and install the normal # Stop the project, deinstall make_work, and install the normal
# backend components # backend components
self.stop() self.stop()
self.sched_uninstall('make_work') self.sched_uninstall('make_work')
def run(self):
self.make_work()
self.sched_install('assimilator') self.sched_install('assimilator')
self.sched_install('file_deleter') self.sched_install('file_deleter')
self.sched_install('validate_test') self.sched_install('validate_test')