Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
#66: Make the configuration stage earlier than validation stage
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Jul 14, 2021
1 parent 779b5d5 commit 435e546
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/rkd/core/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,18 @@ def main(self, argv: list):
# iterate over each task, parse commandline arguments
try:
requested_tasks = cmdline_parser.create_grouped_arguments([':init'] + argv[1:])

except CommandlineParsingError as err:
io.error_msg(str(err))
sys.exit(1)

try:
# validate all tasks
task_resolver.resolve(requested_tasks, TaskDeclarationValidator.assert_declaration_is_valid)

# resolve configuration
task_resolver.resolve(requested_tasks, config_resolver.run_event, fail_fast=False)

# validate all tasks, it's input arguments
task_resolver.resolve(requested_tasks, TaskDeclarationValidator.assert_declaration_is_valid)

# execute all tasks
task_resolver.resolve(requested_tasks, executor.execute)

Expand Down

0 comments on commit 435e546

Please sign in to comment.