Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个任务重复执行3次 #2371

Open
twj555 opened this issue May 17, 2024 · 1 comment
Open

一个任务重复执行3次 #2371

twj555 opened this issue May 17, 2024 · 1 comment

Comments

@twj555
Copy link

twj555 commented May 17, 2024

Qinglong version

2.17.4

Steps to reproduce

定时5秒执行一次

What is expected?

想挨个执行 一个执行完再执行下一个

What is actually happening?

重复了3次 非线性
[🔵info] [2024-05-16 22:16:48]: [schedule][任务处理结束] 运行中任务数: 4, 等待中任务数: 1
[🔵info] [2024-05-16 22:16:48]: [schedule][任务处理成功] 参数 {"name":"3账号 se2黑 正大","schedule":"0/5 * * * * *","extraSchedules":[],"command":"no_tee=true ID=4 task baokxx/zhanghao4.py","pid":18772,"code":0}
[🔵info] [2024-05-16 22:16:48]: [schedule][开始处理任务] 运行中任务数: 4, 等待中任务数: 0
[🔵info] [2024-05-16 22:16:48]: [schedule][开始执行任务] 参数 {"name":"3账号 se2黑 正大","schedule":"0/5 * * * * *","extraSchedules":[],"command":"no_tee=true ID=4 task baokxx/zhanghao4.py"}
[🔵info] [2024-05-16 22:16:48]: [schedule][任务处理结束] 运行中任务数: 4, 等待中任务数: 0
[🔵info] [2024-05-16 22:16:48]: [schedule][任务处理成功] 参数 {"name":"3账号 se2黑 正大","schedule":"0/5 * * * * *","extraSchedules":[],"command":"no_tee=true ID=4 task baokxx/zhanghao4.py","pid":18692,"code":0}
[🔵info] [2024-05-16 22:16:48]: [schedule][任务处理结束] 运行中任务数: 3, 等待中任务数: 0

System Info

No response

Any additional comments?

No response

@jtcymc
Copy link

jtcymc commented May 23, 2024

0/5 * * * * *
换成0/5 * * * *
在Linux中的crontab命令中通常使用5位的Cron表达式,分别表示分钟、小时、日期、月份和星期几

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants