mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Avoid stringification of tool state root dictionary
This commit is contained in:
@@ -322,7 +322,7 @@ class DefaultToolState( object ):
|
||||
value = params_to_strings( tool.inputs, self.inputs, app )
|
||||
value["__page__"] = self.page
|
||||
value["__rerun_remap_job_id__"] = self.rerun_remap_job_id
|
||||
return json.dumps( value )
|
||||
return value
|
||||
|
||||
def decode( self, values, tool, app ):
|
||||
"""
|
||||
|
||||
@@ -787,9 +787,8 @@ class ToolModule( WorkflowModule ):
|
||||
"""
|
||||
if self.tool:
|
||||
state = super( ToolModule, self ).decode_runtime_state( runtime_state )
|
||||
state_dict = loads( runtime_state )
|
||||
if RUNTIME_STEP_META_STATE_KEY in state_dict:
|
||||
self.__restore_step_meta_runtime_state( loads( state_dict[ RUNTIME_STEP_META_STATE_KEY ] ) )
|
||||
if RUNTIME_STEP_META_STATE_KEY in runtime_state:
|
||||
self.__restore_step_meta_runtime_state( loads( runtime_state[ RUNTIME_STEP_META_STATE_KEY ] ) )
|
||||
return state
|
||||
else:
|
||||
raise ToolMissingException( "Tool %s missing. Cannot recover runtime state." % self.tool_id )
|
||||
|
||||
Reference in New Issue
Block a user