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

Seconds are not part of the usual cron spec! #38

Closed
alonisser opened this issue May 3, 2015 · 2 comments
Closed

Seconds are not part of the usual cron spec! #38

alonisser opened this issue May 3, 2015 · 2 comments
Assignees
Labels

Comments

@alonisser
Copy link

using them without explicit warning about that is quite broken.

I think that seconds should be allowed only with a specific flag/boolean, and not in causal parsing. just caused me an evil an unexpected bug

@harrisiirak harrisiirak self-assigned this May 3, 2015
@harrisiirak
Copy link
Owner

Hi,

Sorry to hear that you had an issue with that. In the readme there is explicitly mentioned that seconds field is optional field. If you're not providing second field, it's working like specified in crontab standard, and if you're providing value for second field, it works in extended mode.

Can you provide me exact example which caused an issue?

BR,
Harri

@alonisser
Copy link
Author

thanks for the kind reply @harrisiirak .I noticed that the docs specify seconds, unfortunately I noticed that only after I had the bug.. a quick visual look at the github page shows a drawing very similar to all cron descriptions, but the rest don't have seconds.. that's why I missed that!. the basic problem was I was passing 15 23 * * 1-5 (23:15 monday-friday) so I had an extra` in the end of the cron expression. most cron implementations would shout at me or at least issue a warning. (btw I'm not using directly but tried to debug node-schedule and the found the bug here)

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

No branches or pull requests

2 participants