|
|
@ -5,9 +5,6 @@ import org.slf4j.LoggerFactory;
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
import java.text.ParseException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
@Service
|
|
|
|
public class GrantScheduler {
|
|
|
|
public class GrantScheduler {
|
|
|
|
private final static boolean IS_DEADLINE_NOTIFICATION_BEFORE_WEEK = true;
|
|
|
|
private final static boolean IS_DEADLINE_NOTIFICATION_BEFORE_WEEK = true;
|
|
|
@ -34,11 +31,11 @@ public class GrantScheduler {
|
|
|
|
@Scheduled(cron = "0 0 8 * * ?", zone = "Europe/Samara")
|
|
|
|
@Scheduled(cron = "0 0 8 * * ?", zone = "Europe/Samara")
|
|
|
|
public void loadGrantsFromKias() {
|
|
|
|
public void loadGrantsFromKias() {
|
|
|
|
log.debug("GrantScheduler.loadGrantsFromKias started");
|
|
|
|
log.debug("GrantScheduler.loadGrantsFromKias started");
|
|
|
|
try {
|
|
|
|
// try {
|
|
|
|
grantService.createFromKias();
|
|
|
|
// grantService.createFromKias();
|
|
|
|
} catch (ParseException | IOException e) {
|
|
|
|
// } catch (ParseException | IOException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
// e.printStackTrace();
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
log.debug("GrantScheduler.loadGrantsFromKias finished");
|
|
|
|
log.debug("GrantScheduler.loadGrantsFromKias finished");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|