def get_endtime(jid):
 jid_dir = salt.utils.jid.jid_dir(jid, _job_dir(), __opts__['hash_type'])
 etpath = os.path.join(jid_dir, ENDTIME)
 if (not os.path.exists(etpath)):
  return False
 with salt.utils.fopen(etpath, 'r') as etfile:
  endtime = etfile.read().strip('\n')
 return endtime

def get_endtime ( jid ) : jid_dir = salt . utils . jid . jid_dir ( jid , _job_dir ( ) , __opts__ [ 'hash_type' ] ) etpath = os . path . join ( jid_dir , ENDTIME ) if ( not os . path . exists ( etpath ) ) : return False with salt . utils . fopen ( etpath , 'r' ) as etfile : endtime = etfile . read ( ) . strip ( '\n' ) return endtime
retrieve the stored endtime for a given job returns false if no endtime is present .