scriptcat icon indicating copy to clipboard operation
scriptcat copied to clipboard

crontab 感觉有问题

Open ChitaGideon opened this issue 2 years ago • 8 comments

// @crontab 1 58 22,23 * * *

这个脚本一直早上10点执行,不知道为啥

ChitaGideon avatar Apr 22 '22 02:04 ChitaGideon

10点58分和11点58分?

CodFrm avatar Apr 22 '22 02:04 CodFrm

看看系统时间,和脚本提示

image

CodFrm avatar Apr 22 '22 02:04 CodFrm

提示是有 image

但日志执行总是不对的

ChitaGideon avatar Apr 24 '22 09:04 ChitaGideon

昨天晚上看日志又是正常的,时好时不好

ChitaGideon avatar Apr 25 '22 01:04 ChitaGideon

@ChitaGideon ~~那个日志可以截图全一点吗?~~

复现了,我查查。可以先试试 @corntab 58 22,23 * * *

CodFrm avatar Apr 25 '22 01:04 CodFrm

是不是电脑有一段时间的待机?浏览器产生了休眠

CodFrm avatar Apr 30 '22 06:04 CodFrm

是不是电脑有一段时间的待机?浏览器产生了休眠

有可能,我笔记本很少关机的。

ChitaGideon avatar May 01 '22 06:05 ChitaGideon

可能是这个原因,现在用的crontab库没有处理这种休眠的情况,应该再做个判断就好了

启动时间应该是在刚开机的时候执行的吧

CodFrm avatar May 04 '22 04:05 CodFrm