Commit f7a9794a authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

record the calculation start, not the calculation end time

parent 3984187e
......@@ -680,6 +680,7 @@ def exec_job(module, output_mode='print', ignore_version=False, *job):
raise ValueError("output_mode should be one of 'print', "
"'print_raw', 'return'.")
t = - time.time()
launch_date = datetime.datetime.now()
git_version = get_version_from_git(module)
if git_version == 'unknown' and not ignore_version:
raise RuntimeError('Unknown source code version.')
......@@ -729,7 +730,7 @@ def exec_job(module, output_mode='print', ignore_version=False, *job):
del kwargs
t += time.time()
result.update({'_date': datetime.datetime.now(),
result.update({'_date': launch_date,
'_user': getpass.getuser(), '_version': git_version,
'_time': t, '_peak_rss': get_peak_memory(),
'_module': module})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment