File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ def schedule(
142142 submit : Optional [bool ] = None ,
143143 clean_output : bool = False ,
144144 force : bool = False ,
145+ no_validate = False ,
145146 extra_params : dict = {},
146147 ** kwargs ,
147148) -> Optional [subprocess .CompletedProcess ]:
@@ -541,10 +542,12 @@ def schedule(
541542 force = force ,
542543 )
543544
544- # Validate input file
545- validate_input_file (
546- input_file_path .resolve (), executable = executable , work_dir = run_dir
547- )
545+ if not no_validate :
546+ # Validate input file
547+ validate_input_file (
548+ input_file_path .resolve (), executable = executable , work_dir = run_dir
549+ )
550+
548551 # - If the input file may request resubmissions, make sure we have a
549552 # segments directory
550553 metadata , input_file = yaml .safe_load_all (rendered_input_file )
@@ -854,6 +857,11 @@ def scheduler_options(f):
854857 "You may also want to use '--clean-output'."
855858 ),
856859 )
860+ @click .option (
861+ "--no-validate" ,
862+ is_flag = True ,
863+ help = "Skip validation of the input file." ,
864+ )
857865 # Scheduling options
858866 @click .option (
859867 "--scheduler" ,
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ def test_schedule(self):
230230 extra_option = "TestOpt" ,
231231 metadata_option = "MetaOpt" ,
232232 force = False ,
233+ no_validate = False ,
233234 input_file = "InputFile.yaml" ,
234235 input_file_name = "InputFile.yaml" ,
235236 input_file_template = str (self .test_dir / "InputFile.yaml" ),
You can’t perform that action at this time.
0 commit comments