From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 511B6139085 for ; Thu, 22 Dec 2016 11:29:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B52752241A3; Thu, 22 Dec 2016 11:29:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 98DF22241A3 for ; Thu, 22 Dec 2016 11:29:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C36F6341117 for ; Thu, 22 Dec 2016 11:29:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6937724E5 for ; Thu, 22 Dec 2016 11:29:09 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <1482405824.1513ff38cfc184098d7a96e22a5ecaec72f863d1.zorry@gentoo> Subject: [gentoo-commits] proj/tinderbox-cluster:master commit in: pym/tbc/ X-VCS-Repository: proj/tinderbox-cluster X-VCS-Files: pym/tbc/sqlquerys.py X-VCS-Directories: pym/tbc/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: 1513ff38cfc184098d7a96e22a5ecaec72f863d1 X-VCS-Branch: master Date: Thu, 22 Dec 2016 11:29:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1dad6280-4bb9-42e9-a9b3-3813be285d67 X-Archives-Hash: 6f0e1608bc73d1d1add3f07d1748df20 commit: 1513ff38cfc184098d7a96e22a5ecaec72f863d1 Author: Magnus Granberg gentoo org> AuthorDate: Thu Dec 22 11:23:44 2016 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Thu Dec 22 11:23:44 2016 +0000 URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=1513ff38 update timestamp when jobs is done pym/tbc/sqlquerys.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/tbc/sqlquerys.py b/pym/tbc/sqlquerys.py index a64c5ef..6542c0a 100644 --- a/pym/tbc/sqlquerys.py +++ b/pym/tbc/sqlquerys.py @@ -54,6 +54,8 @@ def get_job_status_waiting_on_guest(session): def update_job_list(session, status, job_id): JobInfo = session.query(Jobs).filter_by(JobId = job_id).one() JobInfo.Status = status + if status = 'Done': + JobInfo.TimeStamp = datetime.datetime.utcnow() session.commit() def get_config_all_info(session):