Skip to content

Commit

Permalink
Merge pull request #2217 from matthewrmshin/fix-gscan-suite-still-ini…
Browse files Browse the repository at this point in the history
…t-again

gscan: fix suite still init traceback again
  • Loading branch information
hjoliver authored Mar 28, 2017
2 parents 0bcbd64 + 7e51b69 commit ab81169
Show file tree
Hide file tree
Showing 2 changed files with 6 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
6 changes: 5 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,10 @@ 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 ab81169

Please sign in to comment.