File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ type EvaluationConfiguration struct {
1616 Models ModelsConfiguration
1717 // Repositories holds repository configuration data.
1818 Repositories RepositoryConfiguration
19+
20+ //APIAttempts holds the number of API query attempts.
21+ APIAttempts int
1922}
2023
2124// ModelsConfiguration holds model data of how an evaluation was configured.
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ func (command *Evaluate) Initialize(args []string) (evaluationContext *evaluate.
170170 command .logger .Panicf ("number of configured query attempts must be greater than zero" )
171171 }
172172 evaluationContext .QueryAttempts = command .QueryAttempts
173+ evaluationConfiguration .APIAttempts = int (command .QueryAttempts )
173174
174175 if command .ExecutionTimeout == 0 {
175176 command .logger .Panicf ("execution timeout for compilation and tests must be greater than zero" )
You can’t perform that action at this time.
0 commit comments