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:
kyuuseiryuu 2026-03-25 01:06:36 +09:00
parent 95655068b3
commit 0cb7c087fc

View File

@ -72,7 +72,7 @@ export class EventWatchSchedule implements Schedule {
start() { start() {
const job = nodeSchedule.scheduleJob('event-watch', { const job = 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: new nodeSchedule.Range(7, 23), hour: new nodeSchedule.Range(7, 22),
}, () => this.watchEvents()); }, () => this.watchEvents());
this.#job = job; 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')); console.debug('Start schedule: %s, next run at %s', job.name, dayjs.tz(job.nextInvocation(), 'Asia/Tokyo').format('YYYY-MM-DD HH:mm:ss'));