@@ -74,7 +74,6 @@ def _parse_args() -> argparse.Namespace:
74
74
parser .add_argument ("--job-id" , action = "store" , type = str )
75
75
parser .add_argument ("--name" , action = "store" , dest = "name" , type = str , required = True )
76
76
parser .add_argument ("--url" , action = "store" , type = str , required = True )
77
-
78
77
parser .add_argument ("--save-dataframe" , action = "store_true" , default = False )
79
78
parser .add_argument (
80
79
"--dataframe-format" ,
@@ -103,6 +102,7 @@ def _parse_args() -> argparse.Namespace:
103
102
default = 120 ,
104
103
)
105
104
parser .add_argument ("--serialized-runner-kwargs" , action = "store" , type = str )
105
+ parser .add_argument ("--custom-load" , action = "store" , type = str , default = None )
106
106
return parser .parse_args ()
107
107
108
108
@@ -121,8 +121,15 @@ def main() -> None:
121
121
if args .executor_type == "process-pool" :
122
122
learner .function = WrappedFunction (learner .function )
123
123
124
+ if args .custom_load is not None :
125
+ custom_load = _deserialize_from_b64 (args .custom_load )
126
+
124
127
with suppress (Exception ):
125
- learner .load (fname )
128
+ if args .custom_load is not None :
129
+ custom_load (learner , fname )
130
+ else :
131
+ learner .load (fname )
132
+
126
133
npoints_start = learner .npoints
127
134
128
135
executor = _get_executor (
0 commit comments