Skip to content

Commit

Permalink
Merge pull request #513 from byuccl/fix_ignore_errors
Browse files Browse the repository at this point in the history
Fix ignore errors for yaml flow
  • Loading branch information
jgoeders authored Sep 30, 2024
2 parents c5e5ead + 16dd4ea commit b792f77
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run_flow(
self.flow_arguments = ast.literal_eval(flow_arguments)
self.__run_ninja()

def run_yaml(self, yaml_path, check_tools, num_threads):
def run_yaml(self, yaml_path, *, check_tools=True, num_threads=1, ignore_errors=False):
"""Run using a yaml configuration file"""

run_config = RunParser(yaml_path)
Expand All @@ -55,6 +55,7 @@ def run_yaml(self, yaml_path, check_tools, num_threads):
self.flow = run_config.flow
self.flow_arguments = run_config.flow_arguments
self.num_threads = num_threads
self.ignore_errors = ignore_errors
if check_tools:
success = external_tools.check_flow(self.flow)
if not success:
Expand Down Expand Up @@ -166,5 +167,8 @@ def parse_args(args):
)
else:
ApplicationRunner().run_yaml(
parsed_args.yaml, check_tools=parsed_args.no_tool_checks, num_threads=parsed_args.jobs
parsed_args.yaml,
check_tools=parsed_args.no_tool_checks,
num_threads=parsed_args.jobs,
ignore_errors=parsed_args.ignore_errors,
)

0 comments on commit b792f77

Please sign in to comment.