fix(schedules): correct event watch schedule end time to 22:00
The scheduled job for watching events was previously set to run until hour 23. This changes the `nodeSchedule.Range` end hour from 23 to 22 to ensure the job stops execution correctly before the end of the day. This is a bug fix to align the actual execution window with the intended operating hours. No breaking changes.
This commit is contained in:
parent
95655068b3
commit
0cb7c087fc
@ -72,7 +72,7 @@ export class EventWatchSchedule implements Schedule {
|
||||
start() {
|
||||
const job = nodeSchedule.scheduleJob('event-watch', {
|
||||
minute: [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55],
|
||||
hour: new nodeSchedule.Range(7, 23),
|
||||
hour: new nodeSchedule.Range(7, 22),
|
||||
}, () => this.watchEvents());
|
||||
this.#job = job;
|
||||
console.debug('Start schedule: %s, next run at %s', job.name, dayjs.tz(job.nextInvocation(), 'Asia/Tokyo').format('YYYY-MM-DD HH:mm:ss'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user