Skip to content

Commit

Permalink
Add a check that we can't get here for good measure.
Browse files Browse the repository at this point in the history
  • Loading branch information
vext01 committed Aug 7, 2017
1 parent e449489 commit 940a932
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions krun/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ def run(self):
)
info("Rebooting to re-run previous process execution")
util.reboot(self.manifest, self.platform, update_count=False)
# reboot() does not return
raise RuntimeError("reached unreachable code!")

# Store new result.
results.append_exec_measurements(job.key, measurements)
Expand Down

0 comments on commit 940a932

Please sign in to comment.