Git Product home page Git Product logo

Comments (3)

P4sca1 avatar P4sca1 commented on June 18, 2024

Hello @renzo-s 👋

Thank you for your feedback. The expression 0-6 in the weekdays field will not result in only Saturdays or sundays, but will allow any weekday between 0 (Sunday) and 6 (Saturday), which includes 1 (Monday), 2 (Tuesday), …, which at the end is every weekday.
If you only want to include Sunday and Saturday, use 0,6 instead (comma instead of dash).

The logic that either day of month or weekday needs to match, comes from this note from crontab.org:

Note: The day of a command's execution can be specified by two fields -- day of month, and day of week. If both fields are restricted (ie, aren't *), the command will be run when either field matches the current time.

So you are right, that this check is wrong, when one of the fields is not restricted.

from cron-schedule.

renzo-s avatar renzo-s commented on June 18, 2024

Hi Pascal, 🙈 damn that was a silly typo. I'm using 0,6 not 0-6 (edited now). Sorry for the confusion. Thanks for the quick reply.

Ah, thanks for the spec note, now the brackets and the OR make sense. This just needs another * check 👌

from cron-schedule.

P4sca1 avatar P4sca1 commented on June 18, 2024

🎉 This issue has been resolved in version 3.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

from cron-schedule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.