Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
kagkarlsson committed Aug 25, 2023
1 parent 65e6926 commit ae64d48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static ScheduledExecutionsFilter all() {
}

public static ScheduledExecutionsFilter onlyResolved() {
return new ScheduledExecutionsFilter();
return new ScheduledExecutionsFilter().withIncludeUnresolved(false);
}

public ScheduledExecutionsFilter withPicked(boolean pickedValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,8 @@ public Void map(ResultSet rs) throws SQLException {
if (addUnresolvedToExclusionFilter) {
LOG.warn(
"Failed to find implementation for task with name '{}'. Execution will be excluded from due. "
+ "Either delete the execution from the database, or add an implementation for it. "
+ "The scheduler may be configured to automatically delete unresolved tasks "
+ "after a certain period of time.",
+ "The scheduler normally delete unresolved tasks after 14d. To handle manually, "
+ "either delete the execution from the database, or add an implementation for it. ",
taskName);
}
continue;
Expand Down Expand Up @@ -681,8 +680,6 @@ public T get() {
return delegate.get();
}

Supplier<T> delegate = this::firstTime;

private synchronized T firstTime() {
if (!initialized) {
T value = original.get();
Expand All @@ -691,6 +688,8 @@ private synchronized T firstTime() {
}
return delegate.get();
}

Supplier<T> delegate = this::firstTime;
};
}

Expand Down

0 comments on commit ae64d48

Please sign in to comment.