Update async tasks
Remove overload memory usage low level timer
This commit is contained in:
parent
b38ede0306
commit
215416cecb
@ -26,25 +26,25 @@ public class AutoKontrakVerification extends LocaleController<LogbookKinerjaVO>
|
||||
private SettingDataFixedDao settingDataFixedDao;
|
||||
|
||||
public AutoKontrakVerification() {
|
||||
int day = 21;
|
||||
int hour = 0;
|
||||
int minute = 00;
|
||||
KontrakVerificationTimer.schedule(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
LOGGER.info("Task Kontrak Verification : Running Task Kontrak Verification");
|
||||
autoKontrakVerification();
|
||||
} catch (Exception ex) {
|
||||
LOGGER.error("Task Kontrak Verification : Task Kontrak Verification " + ex.getMessage());
|
||||
} finally {
|
||||
LOGGER.info("Task Kontrak Verification : Finishing Task Kontrak Verification");
|
||||
}
|
||||
}
|
||||
}, day, hour, minute);
|
||||
// int day = 21;
|
||||
// int hour = 0;
|
||||
// int minute = 00;
|
||||
// KontrakVerificationTimer.schedule(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// try {
|
||||
// LOGGER.info("Task Kontrak Verification : Running Task Kontrak Verification");
|
||||
// autoKontrakVerification();
|
||||
// } catch (Exception ex) {
|
||||
// LOGGER.error("Task Kontrak Verification : Task Kontrak Verification " + ex.getMessage());
|
||||
// } finally {
|
||||
// LOGGER.info("Task Kontrak Verification : Finishing Task Kontrak Verification");
|
||||
// }
|
||||
// }
|
||||
// }, day, hour, minute);
|
||||
}
|
||||
|
||||
@Async
|
||||
// @Async
|
||||
public void autoKontrakVerification() {
|
||||
try {
|
||||
if (CommonUtil.isNotNullOrEmpty(logbookKinerjaService)) {
|
||||
|
||||
@ -22,25 +22,25 @@ public class AutoLogbookVerification extends LocaleController<LogbookKinerjaVO>
|
||||
private LogbookKinerjaService logbookKinerjaService;
|
||||
|
||||
public AutoLogbookVerification() {
|
||||
int day = 5;
|
||||
int hour = 0;
|
||||
int minute = 00;
|
||||
LogbookVerificationTimer.schedule(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
LOGGER.info("Task Logbook Verification : Running Task Logbook Verification");
|
||||
autoLogbookVerification();
|
||||
} catch (Exception ex) {
|
||||
LOGGER.error("Task Logbook Verification : Task Logbook Verification " + ex.getMessage());
|
||||
} finally {
|
||||
LOGGER.info("Task Logbook Verification : Finishing Task Logbook Verification");
|
||||
}
|
||||
}
|
||||
}, day, hour, minute);
|
||||
// int day = 5;
|
||||
// int hour = 0;
|
||||
// int minute = 00;
|
||||
// LogbookVerificationTimer.schedule(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// try {
|
||||
// LOGGER.info("Task Logbook Verification : Running Task Logbook Verification");
|
||||
// autoLogbookVerification();
|
||||
// } catch (Exception ex) {
|
||||
// LOGGER.error("Task Logbook Verification : Task Logbook Verification " + ex.getMessage());
|
||||
// } finally {
|
||||
// LOGGER.info("Task Logbook Verification : Finishing Task Logbook Verification");
|
||||
// }
|
||||
// }
|
||||
// }, day, hour, minute);
|
||||
}
|
||||
|
||||
@Async
|
||||
// @Async
|
||||
public void autoLogbookVerification() {
|
||||
try {
|
||||
if (CommonUtil.isNotNullOrEmpty(logbookKinerjaService)) {
|
||||
|
||||
@ -26,7 +26,7 @@ public class TargetLayananGenerating extends LocaleController<TargetLayananVO> {
|
||||
* Disabled following update business rules
|
||||
* @since 2022/08/28
|
||||
*/
|
||||
// public TargetLayananGenerating() {
|
||||
public TargetLayananGenerating() {
|
||||
// int day = 4;
|
||||
// int hour = 0;
|
||||
// int minute = 00;
|
||||
@ -43,9 +43,9 @@ public class TargetLayananGenerating extends LocaleController<TargetLayananVO> {
|
||||
// }
|
||||
// }
|
||||
// }, day, hour, minute);
|
||||
// }
|
||||
}
|
||||
|
||||
@Async
|
||||
// @Async
|
||||
public void genTargetLayanan() {
|
||||
// Jam Kerja
|
||||
try {
|
||||
|
||||
@ -26,24 +26,24 @@ public class TargetSkorDokterGenerating extends LocaleController<TargetSkorDokte
|
||||
private IkiDanRemunerasiService remunerasiService;
|
||||
|
||||
public TargetSkorDokterGenerating() {
|
||||
int the1st = 1;
|
||||
int at0hrs = 0;
|
||||
TargetSkorDokterTimer.schedule(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
LOGGER.info("Task Target Skor Dokter : Running Task Target Skor Dokter");
|
||||
generateTargetSkorDokter();
|
||||
} catch (Exception ex) {
|
||||
LOGGER.error("Task Target Skor Dokter : Task Target Skor Dokter " + ex.getMessage());
|
||||
} finally {
|
||||
LOGGER.info("Task Target Skor Dokter : Finishing Target Skor Dokter");
|
||||
}
|
||||
}
|
||||
}, the1st, at0hrs);
|
||||
// int the1st = 1;
|
||||
// int at0hrs = 0;
|
||||
// TargetSkorDokterTimer.schedule(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// try {
|
||||
// LOGGER.info("Task Target Skor Dokter : Running Task Target Skor Dokter");
|
||||
// generateTargetSkorDokter();
|
||||
// } catch (Exception ex) {
|
||||
// LOGGER.error("Task Target Skor Dokter : Task Target Skor Dokter " + ex.getMessage());
|
||||
// } finally {
|
||||
// LOGGER.info("Task Target Skor Dokter : Finishing Target Skor Dokter");
|
||||
// }
|
||||
// }
|
||||
// }, the1st, at0hrs);
|
||||
}
|
||||
|
||||
@Async
|
||||
// @Async
|
||||
public void generateTargetSkorDokter() {
|
||||
try {
|
||||
if (CommonUtil.isNotNullOrEmpty(remunerasiService)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user