Skip to content

Commit

Permalink
Merge pull request #83 from njzjz/skip-finished
Browse files Browse the repository at this point in the history
skip checking finished jobs
  • Loading branch information
njzjz committed Jul 4, 2021
2 parents bd83853 + 17c4dfa commit 3e42c79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dpdispatcher/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ def get_submission_state(self):
this method will not handle unexpected (like resubmit terminated) job state in the submission.
"""
for job in self.belonging_jobs:
if job.job_state == JobStatus.finished:
# finished job will be finished for ever, skip
continue
job.get_job_state()
dlog.debug(f"debug:get_submission_state: job: {job.job_hash}, {job.job_id}, {repr(job.job_state)}")
# self.submission_to_json()
Expand Down

0 comments on commit 3e42c79

Please sign in to comment.