From 8ebb33c05cfbbbfb5043178c2e42bb64e36edc1c Mon Sep 17 00:00:00 2001 From: Chris Ballance Date: Wed, 26 Apr 2017 11:33:10 +0100 Subject: [PATCH] master: record time run() is called --- artiq/master/worker_impl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/master/worker_impl.py b/artiq/master/worker_impl.py index 8bfa306ca..7294ee462 100644 --- a/artiq/master/worker_impl.py +++ b/artiq/master/worker_impl.py @@ -223,6 +223,7 @@ def main(): ipc = pipe_ipc.ChildComm(sys.argv[1]) start_time = None + run_time = None rid = None expid = None exp = None @@ -267,6 +268,7 @@ def main(): exp_inst.prepare() put_object({"action": "completed"}) elif action == "run": + run_time = time.localtime() exp_inst.run() put_object({"action": "completed"}) elif action == "analyze": @@ -285,6 +287,7 @@ def main(): f["artiq_version"] = artiq_version f["rid"] = rid f["start_time"] = int(time.mktime(start_time)) + f["run_time"] = int(time.mktime(run_time)) f["expid"] = pyon.encode(expid) put_object({"action": "completed"}) elif action == "examine":