From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SOTzB-0006d0-7T for garchives@archives.gentoo.org; Sun, 29 Apr 2012 13:16:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68E38E05F9; Sun, 29 Apr 2012 13:16:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3457DE05F9 for ; Sun, 29 Apr 2012 13:16:09 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6FB4D1B4019 for ; Sun, 29 Apr 2012 13:16:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 179B6E5403 for ; Sun, 29 Apr 2012 13:16:06 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <1335705354.ef2323376f424e347d5f983b133bd9e114a44c61.zorry@gentoo> Subject: [gentoo-commits] dev/zorry:master commit in: gobs/bin/, gobs/pym/ X-VCS-Repository: dev/zorry X-VCS-Files: gobs/bin/gobs_host_jobs gobs/pym/pgsql.py X-VCS-Directories: gobs/bin/ gobs/pym/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: ef2323376f424e347d5f983b133bd9e114a44c61 X-VCS-Branch: master Date: Sun, 29 Apr 2012 13:16:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 3639a17a-0f17-4df0-8092-9268e24b4b19 X-Archives-Hash: 1fc3bba02cf58e592d4174c3ece83c7b commit: ef2323376f424e347d5f983b133bd9e114a44c61 Author: Magnus Granberg gentoo org> AuthorDate: Sun Apr 29 13:15:54 2012 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Sun Apr 29 13:15:54 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/zorry.git;a=3D= commit;h=3Def232337 start of the job host deamon part2 --- gobs/bin/gobs_host_jobs | 6 +++--- gobs/pym/pgsql.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gobs/bin/gobs_host_jobs b/gobs/bin/gobs_host_jobs index 856041c..e6e5ead 100755 --- a/gobs/bin/gobs_host_jobs +++ b/gobs/bin/gobs_host_jobs @@ -28,14 +28,14 @@ def main(): repeat =3D True while repeat: conn =3D CM.getConnection() - job jobid =3D check_job_list(conn, config_profile) - print("job jobid:" + job + " " + jobid) + job =3D check_job_list(conn, config_profile) + print("job jobid:" + job) if job is None: time.sleep(60) CM.putConnection(conn) continue else: - update_job_list("Runing", jobid) + update_job_list("Runing", job[1]) repeat =3D False CM.putConnection(conn) time.sleep(60) diff --git a/gobs/pym/pgsql.py b/gobs/pym/pgsql.py index 21c204d..6ac08c8 100644 --- a/gobs/pym/pgsql.py +++ b/gobs/pym/pgsql.py @@ -644,10 +644,10 @@ def check_job_list(connection, config_profile): cursor.execute(sqlQ1, (config_profile,)) config_nr =3D cursor.fetchone() cursor.execute(sqlQ2, (config_nr,)) - job jobid =3D cursor.fetchone() + job =3D cursor.fetchone() if job is None: - return None None - return job jobid + return None + return job =09 def update_job_list(status, jobid) cursor =3D connection.cursor()