Skip to content

Commit

Permalink
fix(mu): fix cron interval
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceJuliano committed Aug 22, 2024
1 parent 7027209 commit 28601a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/mu/src/domain/clients/cron.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function startMonitoredProcessWith ({ fetch, histogram, logger, CU_URL, fetchCro

let ct = null
let isJobRunning = false
ct = cron.schedule('0 * * * *', async () => {
ct = cron.schedule('*/10 * * * * *', async () => {
if (!isJobRunning) {
isJobRunning = true
ct.stop() // pause cron while fetching messages
Expand Down

0 comments on commit 28601a3

Please sign in to comment.