Skip to content

Commit

Permalink
gscan: fix suite still init traceback again
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrmshin committed Mar 28, 2017
1 parent 0e646ae commit 668abb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cylc/gui/scanutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ def update_suites_info(
continue
try:
result[KEY_PORT] = port
result[KEY_UPDATE_TIME] = int(float(result[KEY_UPDATE_TIME]))
results[(host, result[KEY_OWNER], result[KEY_NAME])] = result
result[KEY_UPDATE_TIME] = int(float(result[KEY_UPDATE_TIME]))
except (KeyError, TypeError, ValueError):
pass
expire_threshold = time() - DURATION_EXPIRE_STOPPED
Expand Down
5 changes: 4 additions & 1 deletion lib/cylc/network/https/suite_identifier_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def identify(self):
if access_priv_ok(self, "state-totals"):
summary_server = StateSummaryServer.get_inst()
result[KEY_STATES] = summary_server.get_state_totals()
result[KEY_UPDATE_TIME] = summary_server.get_summary_update_time()
result[KEY_TASKS_BY_STATE] = summary_server.get_tasks_by_state()
try:
result[KEY_UPDATE_TIME] = summary_server.get_summary_update_time()
except SuiteStillInitialisingError:
pass
return result

0 comments on commit 668abb5

Please sign in to comment.