Skip to content

Commit

Permalink
refactor: run day-stats cronjob at 12,18,20
Browse files Browse the repository at this point in the history
  • Loading branch information
hudy9x committed Jun 12, 2024
1 parent 2aa3037 commit b188b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/be-scheduler/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ connectPubClient((err, redis) => {

// run every 20pm
const runAt20h = 'runAt20pm'
cronJob.create(runAt20h, '5 12,20 * * *', () => {
cronJob.create(runAt20h, '5 12,18,20 * * *', () => {
// cronJob.create(runAt20h, { every: "minute" }, () => {
const CHANNEL_DAY_STATS = 'stats:day-stats'
redis.publish(CHANNEL_DAY_STATS, 'heelo')
Expand Down

0 comments on commit b188b02

Please sign in to comment.