Fix UI issue for non-json-serializable task arguments. (#1892)

* Fix UI issue for non-json-serializable task arguments.

* Simplify approach.
This commit is contained in:
Robert Nishihara
2018-04-15 13:54:42 -07:00
committed by Philipp Moritz
parent 3383553dc0
commit 7792032ee3
2 changed files with 15 additions and 2 deletions
+4
View File
@@ -594,6 +594,10 @@ class GlobalState(object):
# TODO (hme): do something to correct slider here,
# slider should be correct to begin with, though.
task_table[task_id] = self.task_table(task_id)
task_table[task_id]["TaskSpec"]["Args"] = [
repr(arg)
for arg in task_table[task_id]["TaskSpec"]["Args"]
]
except Exception as e:
print("Could not find task {}".format(task_id))