[Buildbot-devel] Continuous scheduler

Patrick Farrell cyan at compsoc.nuigalway.ie
Mon Feb 26 15:51:07 UTC 2007


Hi,

I'm trying to write a scheduler that runs
its job again as soon as it finishes.
(We have test cases that take days to complete and
want to automate their running continuously.)
I have made an attempt at a Scheduler class that does exactly
this:

class ContinuousScheduler(BaseUpstreamScheduler):
         """Run a job continously."""
         def __init__(self, name, builderNames):
                 BaseUpstreamScheduler.__init__(self, name)
                 self.builderNames = builderNames
                 self.name = name
                 self.successWatchers = [self.SparkBuildAgain]

         def __repr__(self):
                 return "<ContinuousScheduler '%s' at %d>" % (self.name,
                                                     id(self))

         def listBuilderNames(self):
                 return self.builderNames

         def getPendingBuildTimes(self):
                 return []

         def SparkBuildAgain(self, ss):
                 bs = buildset.BuildSet(self.builderNames,
                       SourceStamp(changes=ss))
                 self.submit(bs)

but it appears that SparkBuildAgain is never called, even
though it is in the self.successWatchers list.

Does anyone have any suggestions for how I could get this
to work, or what's going wrong?

Thanks,

-- 
| Patrick Farrell
| cyan at compsoc.nuigalway.ie
----------------------------




More information about the devel mailing list