Skip to content

Commit

Permalink
[PAGOPA-] chore: Update prod config
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-ang committed Oct 11, 2024
1 parent 9d4c29e commit 7e41f43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ cron:
resources:
!!merge <<: *resources
requests:
memory: "256Mi"
cpu: "0.15"
memory: "640Mi"
cpu: "0.20"
limits:
memory: "768Mi"
cpu: "0.25"
memory: "2048Mi"
cpu: "0.50"
autoscaling:
enable: true
minReplica: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ public RecoveryScheduler(RecoveryService recoveryService) {
public void recoverReceiptKOCronJob() {
ZonedDateTime dateFrom = ZonedDateTime.now(ZoneOffset.UTC).minusHours(fromHoursAgo);
ZonedDateTime dateTo = ZonedDateTime.now(ZoneOffset.UTC).minusHours(untilHoursAgo);
log.info("[WISP-Recovery][Scheduled] Reconciliation Cron: recoverReceiptKOCronJob running at {}, for recover stale RPT from {} to {}",
log.info("[WISP-Recovery][Scheduled][Start] Reconciliation Cron: recoverReceiptKOCronJob running at {}, for recover stale RPT from {} to {}",
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(LocalDateTime.now()), dateFrom, dateTo);

int missingRTRecovered = this.recoveryService.recoverReceiptKOByDate(dateFrom, dateTo).getPayments().size();
int missingRedirectRecovered = this.recoveryService.recoverMissingRedirect(dateFrom, dateTo);

log.info("[WISP-Recovery][Scheduled] Reconciliation Cron: recoverReceiptKOCronJob {} receipt-ko sent", missingRedirectRecovered + missingRTRecovered);
log.info("[WISP-Recovery][Scheduled][Stop] Reconciliation Cron: recoverReceiptKOCronJob {} receipt-ko sent", missingRedirectRecovered + missingRTRecovered);
this.threadOfExecution = Thread.currentThread();
}
}

0 comments on commit 7e41f43

Please sign in to comment.