Skip to content

Commit

Permalink
Remove exception and set state to UNKOWN
Browse files Browse the repository at this point in the history
  • Loading branch information
pagrubel committed Feb 18, 2025
1 parent 03a77a1 commit 9a9bf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beeflow/common/worker/lsf_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def query_job(self, job_id):
job_st = subprocess.check_output(['bjobs', '-aX', str(job_id), '-noheader'],
stderr=subprocess.STDOUT)
if 'not found' in str(job_st):
raise Exception
job_state = 'UNKNOWN'
job_state = self.bee_states[job_st.decode().split()[2]]
return job_state

Expand Down

0 comments on commit 9a9bf63

Please sign in to comment.