def condor_stop(external_id):
 failure_message = None
 try:
  check_call(('condor_rm', external_id))
 except CalledProcessError:
  failure_message = 'condor_rm failed'
 except Exception as e:
  ('error encountered calling condor_rm: %s' % e)
 return failure_message

def condor_stop ( external_id ) : failure_message = None try : check_call ( ( 'condor_rm' , external_id ) ) except CalledProcessError : failure_message = 'condor_rm failed' except Exception as e : ( 'error encountered calling condor_rm: %s' % e ) return failure_message
stop running condor job and return a failure_message if this fails .