def list_job(jid, ext_source=None, display_progress=False):
 ret = {'jid': jid}
 mminion = salt.minion.MasterMinion(__opts__)
 returner = _get_returner((__opts__['ext_job_cache'], ext_source, __opts__['master_job_cache']))
 if display_progress:
  __jid_event__.fire_event({'message': 'Querying returner: {0}'.format(returner)}, 'progress')
 job = mminion.returners['{0}.get_load'.format(returner)](jid)
 ret.update(_format_jid_instance(jid, job))
 ret['Result'] = mminion.returners['{0}.get_jid'.format(returner)](jid)
 fstr = '{0}.get_endtime'.format(__opts__['master_job_cache'])
 if (__opts__.get('job_cache_store_endtime') and (fstr in mminion.returners)):
  endtime = mminion.returners[fstr](jid)
  if endtime:
   ret['EndTime'] = endtime
 return ret

def list_job ( jid , ext_source = None , display_progress = False ) : ret = { 'jid' : jid } mminion = salt . minion . MasterMinion ( __opts__ ) returner = _get_returner ( ( __opts__ [ 'ext_job_cache' ] , ext_source , __opts__ [ 'master_job_cache' ] ) ) if display_progress : __jid_event__ . fire_event ( { 'message' : 'Querying returner: {0}' . format ( returner ) } , 'progress' ) job = mminion . returners [ '{0}.get_load' . format ( returner ) ] ( jid ) ret . update ( _format_jid_instance ( jid , job ) ) ret [ 'Result' ] = mminion . returners [ '{0}.get_jid' . format ( returner ) ] ( jid ) fstr = '{0}.get_endtime' . format ( __opts__ [ 'master_job_cache' ] ) if ( __opts__ . get ( 'job_cache_store_endtime' ) and ( fstr in mminion . returners ) ) : endtime = mminion . returners [ fstr ] ( jid ) if endtime : ret [ 'EndTime' ] = endtime return ret
list a specific job given by its jid ext_source if provided .