Skip to content

Commit

Permalink
chore: Update cron schedule to run flushEvents every minute
Browse files Browse the repository at this point in the history
  • Loading branch information
sasicodes committed Jul 21, 2024
1 parent 94d491c commit 5cdbb74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cron/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import cron from 'node-cron'
import { flushEvents } from './services/events'

// Schedule the flushEvents function to run every 4 hour
cron.schedule('0 */4 * * *', async () => {
cron.schedule('* * * * *', async () => {
console.log('[cron] Flushing tower events', new Date())
await flushEvents()
})

0 comments on commit 5cdbb74

Please sign in to comment.