whyour / qinglong

支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台(Timed task management platform supporting Python3, JavaScript, Shell, Typescript)
https://qinglong.online
Apache License 2.0
16.13k stars 2.98k forks source link

随机延迟运行任务不生效 #2458

Closed pooneyy closed 2 months ago

pooneyy commented 3 months ago

Qinglong version

正式版 v2.17.9

Steps to reproduce

config.sh

RandomDelay="3600"
RandomDelayFileExtensions=""
RandomDelayIgnoredMinutes=""

image

image

脚本里运行的是我自己编译的可执行文件,发现设置RandomDelay后随机延迟不生效

What is expected?

希望任务随机延迟至多3600秒开始运行

What is actually happening?

任务需要运行的可执行文件没有后缀名

当前设置了RandomDelay="3600",且RandomDelayFileExtensions=""为空,任务准时运行

System Info

No response

Any additional comments?

No response

whyour commented 2 months ago

没有后缀识别不了,你在任务执行前加随机延迟,或者自己脚本实现随机延迟