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

定时任务如何设置每隔40秒启动脚本 #2484

Closed iptag closed 2 months ago

iptag commented 2 months ago

Qinglong version

2.17.9

Steps to reproduce

设置为/40 *实际是每分钟的0秒和40秒启动脚本,不符合预期

What is expected?

想在task_before中添加以下脚本,看小问号的提示,不知道能否支持bash命令,或者有大佬提供下解决方案?

What is actually happening?

谢谢!

System Info

No response

Any additional comments?

No response

whyour commented 2 months ago

支持 bash 命令

iptag commented 2 months ago

支持 bash 命令

试了下,确实可行,之前只会用task py或者js,能用task sh的话,可扩展性就更强了!