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

crontab 出错 #152

Closed
i-CraftY opened this issue Mar 8, 2023 · 2 comments
Closed

crontab 出错 #152

i-CraftY opened this issue Mar 8, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@i-CraftY
Copy link

i-CraftY commented Mar 8, 2023

// @crontab */5 10-16 * * 2-0

按照表达式下次运行时间应该是星期二到星期天的10-16点,每隔5分钟。

发现的问题是把范围起始日期设置为当天前的时间(*/5 10-16 * * 1-0),就会直接到下一个起始运行。可以复现

QQ截图20230308124637
QQ截图20230308125842

@CodFrm
Copy link
Member

CodFrm commented Mar 8, 2023

好像确实是一个bug,可以先尝试这样:// @crontab */5 10-16 * * 2-6,0

先反馈给库作者了kelektiv/node-cron#654

@CodFrm CodFrm self-assigned this Mar 20, 2023
@CodFrm CodFrm added the bug Something isn't working label Mar 20, 2023
@CodFrm
Copy link
Member

CodFrm commented Aug 28, 2023

目前复现不出来了,并且作者说解决了,我先更新包试试

@CodFrm CodFrm closed this as completed in 0c43741 Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants