Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
refactor: change due date updater every 15 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwigoric committed Dec 3, 2023
1 parent ea3bde2 commit 097c2b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/schedules/agenda.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { DEFAULT_MONGODB_URI } from '../db/default_uri.js'
const agenda = new Agenda({
ensureIndex: true,
processEvery: '10 minutes',
// processEvery: '5 seconds',
db: { address: process.env.MONGODB_URI || DEFAULT_MONGODB_URI }
// TODO: Use existing mongoose connection
})
Expand Down
2 changes: 1 addition & 1 deletion src/schedules/jobs/loan-due-dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ const handler = async (job, done) => {
done()
}

const every = '0 0 * * *' // Every 12:00 AM
const every = '*/15 * * * *' // Every 12:00 AM

export default { name, handler, every }

0 comments on commit 097c2b8

Please sign in to comment.