def print_job(jid, ext_source=None):
 ret = {}
 returner = _get_returner((__opts__['ext_job_cache'], ext_source, __opts__['master_job_cache']))
 mminion = salt.minion.MasterMinion(__opts__)
 try:
  job = mminion.returners['{0}.get_load'.format(returner)](jid)
  ret[jid] = _format_jid_instance(jid, job)
 except TypeError:
  ret[jid]['Result'] = 'Requested returner {0} is not available. Jobs cannot be retrieved. Check master log for details.'.format(returner)
  return ret
 ret[jid]['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[jid]['EndTime'] = endtime
 return ret

def print_job ( jid , ext_source = None ) : ret = { } returner = _get_returner ( ( __opts__ [ 'ext_job_cache' ] , ext_source , __opts__ [ 'master_job_cache' ] ) ) mminion = salt . minion . MasterMinion ( __opts__ ) try : job = mminion . returners [ '{0}.get_load' . format ( returner ) ] ( jid ) ret [ jid ] = _format_jid_instance ( jid , job ) except TypeError : ret [ jid ] [ 'Result' ] = 'Requested returner {0} is not available. Jobs cannot be retrieved. Check master log for details.' . format ( returner ) return ret ret [ jid ] [ '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 [ jid ] [ 'EndTime' ] = endtime return ret
print a specific jobs detail given by its jid .