[Pkg-debile-commits] [debile-master] 08/26: Use uuid in forfeit/close functions
Sylvestre Ledru
sylvestre at alioth.debian.org
Tue Aug 20 16:22:35 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch master
in repository debile-master.
commit a0b3d5a6db4879e7b50a33aee46db5653576cf62
Author: Léo Cavaillé <leo at cavaille.net>
Date: Fri Aug 9 22:44:35 2013 +0200
Use uuid in forfeit/close functions
---
lucy/server.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lucy/server.py b/lucy/server.py
index 4181171..70ecd69 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -221,9 +221,9 @@ class LucyInterface(object):
return jobs
@machine_method
- def forfeit_job(self, job_id):
+ def forfeit_job(self, job_uuid):
session = Session()
- j = session.query(Job).filter(Job.id == job_id).one()
+ j = session.query(Job).filter(Job.uuid == job_uuid).one()
if j.machine != get_builder():
return None # meh
@@ -292,7 +292,7 @@ class LucyInterface(object):
#return rid
@machine_method
- def close_job(self, job_id, failed):
+ def close_job(self, job_uuid, failed):
"""
Close a job after pushing reports / binaries up.
"""
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list