We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abab772 commit 9824495Copy full SHA for 9824495
src/toil/cwl/cwltoil.py
@@ -2255,8 +2255,12 @@ def pack_runtime_context(local_context: cwltool.context.RuntimeContext) -> cwlto
2255
# Drop the FS access hook
2256
stored_context.make_fs_access = StdFsAccess
2257
2258
- # Make sure it pickles
2259
- pickle.dumps(stored_context)
+ if hasattr(stored_context, "toil_get_file"):
+ # Drop the toil_get_file hook
2260
+ delattr(stored_context, "toil_get_file")
2261
+
2262
+ # Drop the path mapper hook
2263
+ stored_context.path_mapper = PathMapper
2264
2265
return stored_context
2266
0 commit comments