mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 23:39:37 +08:00
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:
committed by
Philipp Moritz
parent
3383553dc0
commit
7792032ee3
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user