return jobs
def add_job(self, arch, type="build"):
- job = self.backend.jobs.create(self.backend, self, arch, type=type)
+ job = self.backend.jobs.create(self, arch, type=type)
# Add new job to cache.
self.jobs.append(job)
for row in res:
yield Job(self.backend, row.id, data=row)
- def create(self, build, arch, type="build"):
+ def create(self, build, arch, type="build"):
job = self._get_job("INSERT INTO jobs(uuid, type, build_id, arch, time_created) \
VALUES(%s, %s, %s, %s, NOW()) RETURNING *", "%s" % uuid.uuid4(), type, build.id, arch)
job.log("created")