Skip to content

Error when handling "unknown" jobs on LSF system #211

Answered by njzjz
nyanss asked this question in Q&A
Discussion options

You must be logged in to vote

if status_word in ["PEND", "WAIT", "PSUSP"]:
return JobStatus.waiting
elif status_word in ["RUN", "USUSP"]:
return JobStatus.running
elif status_word in ["DONE", "EXIT"]:
if self.check_finish_tag(job):
dlog.info(f"job: {job.job_hash} {job.job_id} finished")
return JobStatus.finished
else:
return JobStatus.terminated
else:
return JobStatus.unknown

This is the current list of keywords to be processed. Contribution is welcome if you found new words.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nyanss
Comment options

Answer selected by nyanss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants