Skip to content

Commit

Permalink
Proper invocation of the health check
Browse files Browse the repository at this point in the history
  • Loading branch information
Channyboy committed Feb 26, 2025
1 parent 9d2777e commit 29a801d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -580,12 +580,13 @@ public FileUpdateProcess(File file, String healthCheckProcedure) {
*/
public FileUpdateProcess(File file, String healthCheckProcedure, boolean isStopOnCreate) {
this.file = file;
this.healthCheckProcedure = healthCheckProcedure;
this.isStopOnCreate = isStopOnCreate;
}

@Override
public void run() {
performFileHealthCheck(file, HealthCheckConstants.HEALTH_CHECK_START);
performFileHealthCheck(file, healthCheckProcedure);
if (isStopOnCreate && file.exists()) {
cancel();
}
Expand Down

0 comments on commit 29a801d

Please sign in to comment.