From 76576fca186993bcd55c521bd6018019fd0cc5d7 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 8 May 2013 12:58:24 +0200 Subject: [PATCH] Also print cmd when printing job no. --- paralleljobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paralleljobs.py b/paralleljobs.py index baf7965..6eb92dd 100755 --- a/paralleljobs.py +++ b/paralleljobs.py @@ -66,12 +66,13 @@ def runCmd(cmd): return exitcode, out, err def processJob(conn, jobid): - print("Process job %d" % (jobid)) c = conn.cursor() c.execute("SELECT cmd FROM jobs WHERE id=?", (jobid,)) cmd, = c.fetchone() + print("Process job %d: %s" % (jobid, cmd)) + ec, out, err = runCmd(cmd) c.execute("UPDATE jobs SET exitcode=?, done=1 WHERE id=?;", (ec, jobid)) -- 2.39.5