issue-93 #108
@ -55,6 +55,7 @@ public class TaskSchedulingService {
|
||||
public void sendRunningTaskNotification(AbstractSchedule abstractSchedule) {
|
||||
HttpClient httpClient = HttpClient.newHttpClient();
|
||||
User user = abstractSchedule.getTask().getTaskgroup().getUser();
|
||||
if(user.getNtfy_host() != null && user.getNtfy_topic() != null) {
|
||||
try {
|
||||
HttpRequest request = HttpRequest.newBuilder()
|
||||
.uri(new URI(user.getNtfy_host()+ "/" + user.getNtfy_topic()))
|
||||
@ -70,6 +71,8 @@ public class TaskSchedulingService {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static Date calculateDelayInMillis(LocalDateTime executionTime) {
|
||||
return Date.from(executionTime.atZone(ZoneId.systemDefault()).toInstant());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user