fix(schedules): limit event watch task to 7-23 hours
The event watch schedule was previously running every 5 minutes all day. Added 'hour: 7-23' configuration to restrict the task execution to business hours, preventing unnecessary load during off-peak times.
This commit is contained in:
parent
58cf736e82
commit
5ab0d9d188
@ -58,6 +58,7 @@ export class EventWatchSchedule implements Schedule {
|
|||||||
start() {
|
start() {
|
||||||
const schedule = nodeSchedule.scheduleJob('event-watch', {
|
const schedule = nodeSchedule.scheduleJob('event-watch', {
|
||||||
minute: [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55],
|
minute: [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55],
|
||||||
|
hour: '7-23',
|
||||||
}, () => this.watchEvents());
|
}, () => this.watchEvents());
|
||||||
console.debug('Start schedule:', schedule.name);
|
console.debug('Start schedule:', schedule.name);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user