Skip to content

Commit

Permalink
fix: take smaller batch in tax backend payments task (#1634)
Browse files Browse the repository at this point in the history
take smaller batch and more often in loading noris payments
  • Loading branch information
erehulka authored Oct 30, 2024
1 parent d40ab19 commit 95a7882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nest-tax-backend/src/tasks/tasks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class TasksService {
this.logger = new Logger('TasksService')
}

@Cron(CronExpression.EVERY_10_MINUTES)
@Cron(CronExpression.EVERY_5_MINUTES)
async updatePaymentsFromNoris() {
const year = new Date().getFullYear()

Expand Down
2 changes: 1 addition & 1 deletion nest-tax-backend/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const MAX_NORIS_PAYMENTS_BATCH_SELECT = 200
export const MAX_NORIS_PAYMENTS_BATCH_SELECT = 100

0 comments on commit 95a7882

Please sign in to comment.