Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSLogic
Commits
ed359100
Commit
ed359100
authored
7 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix in logic regarding counting/detecting failed model runs
parent
533f45f6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/nibio/vips/logic/scheduling/tasks/RunAllForecastConfigurationsTask.java
+11
-3
11 additions, 3 deletions
...ic/scheduling/tasks/RunAllForecastConfigurationsTask.java
with
11 additions
and
3 deletions
src/main/java/no/nibio/vips/logic/scheduling/tasks/RunAllForecastConfigurationsTask.java
+
11
−
3
View file @
ed359100
...
@@ -115,20 +115,25 @@ public class RunAllForecastConfigurationsTask extends VipsLogicTask{
...
@@ -115,20 +115,25 @@ public class RunAllForecastConfigurationsTask extends VipsLogicTask{
ex
.
getMessage
(),
ex
.
getMessage
(),
SchedulingUtil
.
MESSAGE_STATUS_DANGER
)
SchedulingUtil
.
MESSAGE_STATUS_DANGER
)
);
);
//System.out.println("Error caught");
//System.out.println("########################### Error caught: " + errorMessage);
continue
;
//System.out.println("numberOfCompletedForecastConfigurations=" + numberOfCompletedForecastConfigurations);
//System.out.println("totalNumberofForecastConfigurations=" + totalNumberofForecastConfigurations);
//continue;
}
}
}
}
if
(
totalNumberofForecastConfigurations
>
0
)
if
(
totalNumberofForecastConfigurations
>
0
)
{
{
noForecastConfigurationsFound
=
false
;
double
completeness
=
(
double
)
numberOfCompletedForecastConfigurations
/
totalNumberofForecastConfigurations
;
double
completeness
=
(
double
)
numberOfCompletedForecastConfigurations
/
totalNumberofForecastConfigurations
;
tec
.
setCompleteness
(
completeness
);
tec
.
setCompleteness
(
completeness
);
}
}
else
else
{
{
noForecastConfigurationsFound
=
true
;
noForecastConfigurationsFound
=
true
;
//System.out.println("noForecastConfigurationsFound == true!!");
}
}
//System.out.println("Current completeness=" + tec.getTaskExecutor().getCompleteness());
}
}
}
}
...
@@ -138,9 +143,12 @@ public class RunAllForecastConfigurationsTask extends VipsLogicTask{
...
@@ -138,9 +143,12 @@ public class RunAllForecastConfigurationsTask extends VipsLogicTask{
tec
.
setCompleteness
(
1.0
);
tec
.
setCompleteness
(
1.0
);
tec
.
setStatusMessage
(
"No current forecast configurations were found"
);
tec
.
setStatusMessage
(
"No current forecast configurations were found"
);
}
}
//System.out.println("Total completeness=" + tec.getTaskExecutor().getCompleteness());
if
(
tec
.
getTaskExecutor
().
getCompleteness
()
!=
1.0
)
if
(
tec
.
getTaskExecutor
().
getCompleteness
()
!=
1.0
)
{
{
//System.out.println("Error detected");
//System.out.println("Error detected
, RuntimeException thrown just after this
");
tec
.
setStatusMessage
(
errorMessage
.
toString
());
tec
.
setStatusMessage
(
errorMessage
.
toString
());
throw
new
RuntimeException
();
throw
new
RuntimeException
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment