Update scheduled tasks
Perbaikan format cron untuk unix system
This commit is contained in:
parent
759379dc38
commit
44236ff818
@ -30,7 +30,7 @@ public class ScheduleTask {
|
||||
@Autowired
|
||||
private SlipGajiService slipGajiService;
|
||||
|
||||
@Scheduled(cron = "0 0 23 L JUN ? 2034/1")
|
||||
@Scheduled(cron = "0 0 23 30 6 ?")
|
||||
public void generateKalender() {
|
||||
LOGGER.info("Generate kalender tahun {}",
|
||||
LocalDate.now().plusYears(1).format(DateTimeFormatter.ofPattern("yyyy")));
|
||||
@ -38,15 +38,14 @@ public class ScheduleTask {
|
||||
kalenderService.generateAndSaveKalender();
|
||||
}
|
||||
|
||||
@Scheduled(cron = "0 0 0 1 * ? *")
|
||||
@Scheduled(cron = "0 0 0 1 * ?")
|
||||
public void genarateJadwalPegawaiNonShift() {
|
||||
LOGGER.info("Generate jadwal pegawai bulan {}",
|
||||
LocalDate.now().format(DateTimeFormatter.ofPattern("MM-yyyy")));
|
||||
LOGGER.info("Generate jadwal pegawai bulan {}", LocalDate.now().format(DateTimeFormatter.ofPattern("MM-yyyy")));
|
||||
|
||||
pegawaiJadwalKerjaService.autoSaveJadwalKerjaNonShift();
|
||||
}
|
||||
|
||||
@Scheduled(cron = "0 0 0 1 * ? *")
|
||||
@Scheduled(cron = "0 0 0 1 * ?")
|
||||
public void initiateSlipGaji() {
|
||||
LOGGER.info("Initiate template slip gaji bulan {}",
|
||||
LocalDate.now().format(DateTimeFormatter.ofPattern("MM-yyyy")));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user