Skip to content

Commit

Permalink
Use that in the RunInitialization job, and throw if invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Nov 7, 2024
1 parent b249fef commit dd6a610
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/workflow/RunInitialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,17 @@ void OSWorkflow::runInitialization() {
}
});

// TODO: create the runner with our WorkflowJSON (workflow gem uses datapoint/analysis too?!)

// TODO: Validate the OSW measures if the flag is set to true, (the default state)
// Note JM 2022-11-07: Is it better to try and load all measures once, instead of crashing later?
// There isn't a 'verify_osw' key in the RunOptions, so always do it for now. Maybe don't if `fast`?
{
LOG(Info, "Attempting to validate the measure workflow");

if (!workflowJSON.validateMeasures()) {
LOG_AND_THROW("Workflow is invalid");
}

LOG(Info, "Validated the measure workflow");
}

LOG(Debug, "Finding and loading the seed file");
auto seedPath_ = workflowJSON.seedFile();
Expand Down

0 comments on commit dd6a610

Please sign in to comment.