Comment 4 for bug 499095

Revision history for this message
Michael Nelson (michael.nelson) wrote :

So the issue is:

1. We manually reset job.date_started to null due to the original issue outlined above, but we did *not* reset job.status.
2. When the job was started at 2009-12-17 21:33:34 (https://pastebin.canonical.com/26090/), the build.markAsBuilding() was called, setting the builder, but it did *not* call job.start(), which in turn sets job.date_started as BuildQueue's method is as follows:

{{{
    def markAsBuilding(self, builder):
        """See `IBuildQueue`."""
        self.builder = builder
        if self.job.status != JobStatus.RUNNING:
            self.job.start()
        self.specific_job.jobStarted()
}}}

3. Because job.date_started is null, this job is never returned as part of BuildQueueSet.getActiveBuildJobs(), which is used by the build master to scan and update the current jobs.

Which means that the solution should be to simply set the job.date_started to "2009-12-17 21:33:34".