Spaces:
Paused
Paused
github-actions[bot]
commited on
Commit
·
3e94565
1
Parent(s):
19777cb
Update from GitHub Actions
Browse files- scheduler.js +3 -3
scheduler.js
CHANGED
|
@@ -18,8 +18,8 @@ async function startScheduler() {
|
|
| 18 |
}
|
| 19 |
|
| 20 |
console.log(`[${getHumanReadableTimestamp()}] 启动调度器...`);
|
| 21 |
-
const
|
| 22 |
-
console.log(`调度器将每${
|
| 23 |
|
| 24 |
let browser;
|
| 25 |
try {
|
|
@@ -47,7 +47,7 @@ async function startScheduler() {
|
|
| 47 |
}
|
| 48 |
}, config.schedulerInterval);
|
| 49 |
|
| 50 |
-
console.log(`[${getHumanReadableTimestamp()}] 调度器已启动,将每${
|
| 51 |
console.log('按 Ctrl+C 停止调度器');
|
| 52 |
|
| 53 |
// 监听进程退出信号
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
console.log(`[${getHumanReadableTimestamp()}] 启动调度器...`);
|
| 21 |
+
const intervalSeconds = Math.round(config.schedulerInterval / 1000);
|
| 22 |
+
console.log(`调度器将每${intervalSeconds}秒执行一次命令以防止编辑器休眠`);
|
| 23 |
|
| 24 |
let browser;
|
| 25 |
try {
|
|
|
|
| 47 |
}
|
| 48 |
}, config.schedulerInterval);
|
| 49 |
|
| 50 |
+
console.log(`[${getHumanReadableTimestamp()}] 调度器已启动,将每${intervalSeconds}秒执行一次命令`);
|
| 51 |
console.log('按 Ctrl+C 停止调度器');
|
| 52 |
|
| 53 |
// 监听进程退出信号
|