Adding the StartTime to the output of the jobs.active runner.

This commit is contained in:
Gareth J. Greenaway 2015-01-20 11:42:01 -08:00
parent 89ef86096c
commit b7d5bf57c2

View File

@ -46,8 +46,9 @@ def active(outputter=None, display_progress=False):
if not isinstance(data, list):
continue
for job in data:
log.info('job {0}'.format(job))
if not job['jid'] in ret:
ret[job['jid']] = _format_job_instance(job)
ret[job['jid']] = _format_jid_instance(job['jid'], job)
ret[job['jid']].update({'Running': [{minion: job.get('pid', None)}], 'Returned': []})
else:
ret[job['jid']]['Running'].append({minion: job['pid']})