def update_endtime(jid, time):
 jid_dir = salt.utils.jid.jid_dir(jid, _job_dir(), __opts__['hash_type'])
 try:
  if (not os.path.exists(jid_dir)):
   os.makedirs(jid_dir)
  with salt.utils.fopen(os.path.join(jid_dir, ENDTIME), 'w') as etfile:
   etfile.write(time)
 except IOError as exc:
  log.warning('Could not write job invocation cache file: {0}'.format(exc))

def update_endtime ( jid , time ) : jid_dir = salt . utils . jid . jid_dir ( jid , _job_dir ( ) , __opts__ [ 'hash_type' ] ) try : if ( not os . path . exists ( jid_dir ) ) : os . makedirs ( jid_dir ) with salt . utils . fopen ( os . path . join ( jid_dir , ENDTIME ) , 'w' ) as etfile : etfile . write ( time ) except IOError as exc : log . warning ( 'Could not write job invocation cache file: {0}' . format ( exc ) )
update the end time for a given job endtime is stored as a plain text string .